Go to the source code of this file.
|
static BOOL | seta_eval (LPCTSTR expr) |
|
static LPCTSTR | skip_ws (LPCTSTR p) |
|
static LPTSTR | GetQuotedString (TCHAR *p) |
|
INT | cmd_set (LPTSTR param) |
|
static INT | ident_len (LPCTSTR p) |
|
static INT | seta_identval (LPCTSTR ident) |
|
static BOOL | calc (INT *lval, TCHAR op, INT rval) |
|
static BOOL | seta_stmt (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_unaryTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_mulTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_ltorTerm (LPCTSTR *p_, INT *result, LPCTSTR ops, BOOL(*subTerm)(LPCTSTR *, INT *)) |
|
static BOOL | seta_addTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_logShiftTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_bitAndTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_bitExclOrTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_bitOrTerm (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_expr (LPCTSTR *p_, INT *result) |
|
static BOOL | seta_assignment (LPCTSTR *p_, INT *result) |
|
◆ ENV_BUFFER_SIZE
Definition at line 42 of file set.c.
◆ PARSE_IDENT
Value:do { \
ident[identlen] = 0; \
p += identlen; \
} while (0)
_In_ ULONG _In_ ULONG_PTR ident
static INT ident_len(LPCTSTR p)
Definition at line 271 of file set.c.
◆ calc()
◆ cmd_set()
Definition at line 72 of file set.c.
97 if (*lpOutput !=
_T(
'='))
102 lpOutput +=
_tcslen(lpOutput) + 1;
207 bRestoreSpace = (
p !=
NULL);
219 if (!
_tcsnicmp(lpOutput, pOrgParam,
p - pOrgParam) ||
226 lpOutput +=
_tcslen(lpOutput) + 1;
#define ConErrResPuts(uID)
static BOOL seta_eval(LPCTSTR expr)
static VOID ConInString(LPWSTR lpInput, DWORD dwLength)
static LPCTSTR skip_ws(LPCTSTR p)
#define ConOutPrintf(szStr,...)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
static VOID StripQuotes(LPSTR in)
#define STRING_SYNTAX_COMMAND_INCORRECT
#define STRING_SET_ENV_ERROR
#define ConErrResPrintf(uID,...)
size_t __cdecl _tcslen(const _TCHAR *str)
static LPTSTR GetQuotedString(TCHAR *p)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
#define SetEnvironmentVariable
LPSTR WINAPI GetEnvironmentStrings(void)
_TCHAR * _tcsrchr(const _TCHAR *s, _XINT c)
#define FreeEnvironmentStrings
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)
VOID ConOutPuts(LPTSTR szText)
◆ GetQuotedString()
Definition at line 58 of file set.c.
static LPCTSTR skip_ws(LPCTSTR p)
_TCHAR * _tcsrchr(const _TCHAR *s, _XINT c)
Referenced by cmd_set().
◆ ident_len()
◆ seta_addTerm()
Definition at line 491 of file set.c.
static BOOL seta_mulTerm(LPCTSTR *p_, INT *result)
static BOOL seta_ltorTerm(LPCTSTR *p_, INT *result, LPCTSTR ops, BOOL(*subTerm)(LPCTSTR *, INT *))
Referenced by seta_logShiftTerm().
◆ seta_assignment()
Definition at line 579 of file set.c.
584 INT identlen, exprval;
663 if (exprval < 0 || exprval >= (8 *
sizeof(identval)))
666 identval <<= exprval;
672 identval >>= exprval;
677 if (!
calc(&identval,
op, exprval))
static LPCTSTR skip_ws(LPCTSTR p)
static INT seta_identval(LPCTSTR ident)
GLenum GLuint GLenum GLsizei const GLchar * buf
static BOOL seta_expr(LPCTSTR *p_, INT *result)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
_In_ ULONG _In_ ULONG_PTR ident
static BOOL seta_assignment(LPCTSTR *p_, INT *result)
#define SetEnvironmentVariable
static BOOL calc(INT *lval, TCHAR op, INT rval)
#define PARSE_IDENT(ident, identlen, p)
Referenced by seta_stmt().
◆ seta_bitAndTerm()
Definition at line 503 of file set.c.
537 if (rval < 0 || rval >= (8 *
sizeof(lval)))
#define STRING_INVALID_OPERAND
#define ConErrResPuts(uID)
static LPCTSTR skip_ws(LPCTSTR p)
static BOOL seta_logShiftTerm(LPCTSTR *p_, INT *result)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
Referenced by seta_bitExclOrTerm().
◆ seta_bitExclOrTerm()
Definition at line 561 of file set.c.
static BOOL seta_ltorTerm(LPCTSTR *p_, INT *result, LPCTSTR ops, BOOL(*subTerm)(LPCTSTR *, INT *))
static BOOL seta_bitAndTerm(LPCTSTR *p_, INT *result)
Referenced by seta_bitOrTerm().
◆ seta_bitOrTerm()
Definition at line 567 of file set.c.
static BOOL seta_ltorTerm(LPCTSTR *p_, INT *result, LPCTSTR ops, BOOL(*subTerm)(LPCTSTR *, INT *))
static BOOL seta_bitExclOrTerm(LPCTSTR *p_, INT *result)
Referenced by seta_expr().
◆ seta_eval()
Definition at line 723 of file set.c.
#define ConErrResPuts(uID)
#define ConOutPrintf(szStr,...)
#define STRING_SYNTAX_COMMAND_INCORRECT
static BOOL seta_stmt(LPCTSTR *p_, INT *result)
Referenced by cmd_set().
◆ seta_expr()
Definition at line 573 of file set.c.
static BOOL seta_ltorTerm(LPCTSTR *p_, INT *result, LPCTSTR ops, BOOL(*subTerm)(LPCTSTR *, INT *))
static BOOL seta_bitOrTerm(LPCTSTR *p_, INT *result)
Referenced by seta_assignment().
◆ seta_identval()
◆ seta_logShiftTerm()
Definition at line 497 of file set.c.
static BOOL seta_ltorTerm(LPCTSTR *p_, INT *result, LPCTSTR ops, BOOL(*subTerm)(LPCTSTR *, INT *))
static BOOL seta_addTerm(LPCTSTR *p_, INT *result)
Referenced by seta_bitAndTerm().
◆ seta_ltorTerm()
◆ seta_mulTerm()
Definition at line 416 of file set.c.
static BOOL seta_mulTerm(LPCTSTR *p_, INT *result)
static LPCTSTR skip_ws(LPCTSTR p)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
static BOOL seta_unaryTerm(LPCTSTR *p_, INT *result)
Referenced by seta_addTerm().
◆ seta_stmt()
Definition at line 700 of file set.c.
709 while (*
p ==
_T(
','))
static LPCTSTR skip_ws(LPCTSTR p)
static BOOL seta_assignment(LPCTSTR *p_, INT *result)
Referenced by seta_eval(), and seta_unaryTerm().
◆ seta_unaryTerm()
Definition at line 353 of file set.c.
380 ConErrPuts(
_T(
"Invalid number. Numbers are limited to 32-bits of precision.\n"));
392 ConErrPuts(
_T(
"Invalid number. Numeric constants are either decimal (42), hexadecimal (0x2A), or octal (052).\n"));
#define ConErrResPuts(uID)
static LPCTSTR skip_ws(LPCTSTR p)
static INT seta_identval(LPCTSTR ident)
static BOOL seta_stmt(LPCTSTR *p_, INT *result)
#define STRING_EXPECTED_NUMBER_OR_VARIABLE
_In_ ULONG _In_ ULONG_PTR ident
VOID ConErrPuts(LPTSTR szText)
#define PARSE_IDENT(ident, identlen, p)
#define STRING_EXPECTED_CLOSE_PAREN
Referenced by seta_mulTerm().
◆ skip_ws()
Definition at line 48 of file set.c.
50 while (*
p && *
p <=
_T(
' '))
Referenced by cmd_set(), findend(), GetQuotedString(), import_file(), process_preprocessor(), seta_assignment(), seta_bitAndTerm(), seta_ltorTerm(), seta_mulTerm(), seta_stmt(), seta_unaryTerm(), and tokenize().