VirtualBox

Changeset 93173 in vbox


Ignore:
Timestamp:
Jan 11, 2022 1:07:52 AM (3 years ago)
Author:
vboxsync
Message:

iprt/RTExprEval: Early code for a 'simple' expression evaluator a la /bin/expr and such. [scm+doxygen] bugref:9781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/expreval.cpp

    r93170 r93173  
    3535#include <iprt/assert.h>
    3636#include <iprt/ctype.h>
    37 #include <iprt/err.h>
     37#include <iprt/errcore.h>
    3838#include <iprt/mem.h>
    3939#include <iprt/path.h>
     
    270270 * @returns status code.
    271271 * @param   pThis   The evaluator instance.
    272  * @param   piSrc   Where to store the numeric value on success.
     272 * @param   piDst   Where to store the numeric value on success.
    273273 * @param   pszSrc  The string to try convert.
    274274 * @param   fQuiet  Whether we should be quiet or grumpy on failure.
     
    11391139 * @param   pVar1   The first variable.
    11401140 * @param   pVar2   The second variable.
     1141 * @param   pszOp   The operator requesting this (for errors).
    11411142 */
    11421143static EXPRRET expr_var_unify_types(PEXPR pThis, PEXPRVAR pVar1, PEXPRVAR pVar2, const char *pszOp)
     
    23102311 *          It's on the operand stack.
    23112312 *
    2312  * @param   This        The evaluator instance.
     2313 * @param   pThis       The evaluator instance.
    23132314 */
    23142315static EXPRRET expr_get_unary_or_operand(PEXPR pThis)
     
    25582559*********************************************************************************************************************************/
    25592560
    2560 /** @callback_method_impl{FNRTEXPREVALQUERYVARIABLE, Stub}   */
     2561/** @callback_method_impl{PFNRTEXPREVALQUERYVARIABLE, Stub}   */
    25612562static DECLCALLBACK(int) rtExprEvalDummyQueryVariable(const char *pchName, size_t cchName, void *pvUser, char **ppszValue)
    25622563{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette