Lines Matching defs:pszDefine

524 static PVBCPPMACRO  vbcppMacroLookup(PVBCPP pThis, const char *pszDefine, size_t cchDefine);
1640 * @param pszDefine The define name and optionally the argument
1644 static bool vbcppMacroExists(PVBCPP pThis, const char *pszDefine, size_t cchDefine)
1647 && VBCPP_BITMAP_IS_SET(pThis->bmDefined, *pszDefine)
1648 && RTStrSpaceGetN(&pThis->StrSpace, pszDefine, cchDefine) != NULL;
1657 * @param pszDefine The define name and optionally the argument
1661 static PVBCPPMACRO vbcppMacroLookup(PVBCPP pThis, const char *pszDefine, size_t cchDefine)
1665 if (!VBCPP_BITMAP_IS_SET(pThis->bmDefined, *pszDefine))
1667 return (PVBCPPMACRO)RTStrSpaceGetN(&pThis->StrSpace, pszDefine, cchDefine);
2522 * @param pszDefine The define name, no argument list or anything.
2527 static RTEXITCODE vbcppMacroUndef(PVBCPP pThis, const char *pszDefine, size_t cchDefine, bool fExplicitUndef)
2529 PRTSTRSPACECORE pHit = RTStrSpaceGetN(&pThis->StrSpace, pszDefine, cchDefine);
2539 cchDefine = strlen(pszDefine);
2546 memcpy(pszDst, pszDefine, cchDefine);
2626 * @param pszDefine The define name, no parameter list.
2634 static RTEXITCODE vbcppMacroAddFn(PVBCPP pThis, const char *pszDefine, size_t cchDefine,
2640 Assert(RTStrNLen(pszDefine, cchDefine) == cchDefine);
2693 memcpy(pszDst, pszDefine, cchDefine);
2750 * @param pszDefine The define name and optionally the argument
2757 static RTEXITCODE vbcppMacroAdd(PVBCPP pThis, const char *pszDefine, size_t cchDefine,
2764 cchDefine = strlen(pszDefine);
2765 while (cchDefine > 0 && RT_C_IS_SPACE(*pszDefine))
2766 pszDefine++, cchDefine--;
2767 while (cchDefine > 0 && RT_C_IS_SPACE(pszDefine[cchDefine - 1]))
2770 return vbcppErrorPos(pThis, pszDefine, "The define has no name");
2782 const char *pszParams = (const char *)memchr(pszDefine, '(', cchDefine);
2785 size_t cchParams = pszDefine + cchDefine - pszParams;
2787 if (!vbcppValidateCIdentifier(pThis, pszDefine, cchDefine))
2793 return vbcppMacroAddFn(pThis, pszDefine, cchDefine, pszParams, cchParams, pszValue, cchValue, fCmdLine);
2799 if (!vbcppValidateCIdentifier(pThis, pszDefine, cchDefine))
2807 memcpy((char *)pMacro->Core.pszString, pszDefine, cchDefine);
2840 const char *pszDefine = pMacro->Core.pszString;
2897 pszType, pszDefine, pszNext - pszValue, pszValue);
2936 pszType, pszDefine, cchInnerValue, pchInnerValue);
2939 pszDefine, u64);
2942 pszDefine, u64);