version 1.67, 2007/07/22 17:56:50 |
version 1.68, 2007/07/24 18:52:47 |
|
|
} |
} |
} |
} |
|
|
size_t |
bool |
Var_ParseSkip(const char *str, SymTable *ctxt, bool *result) |
Var_ParseSkip(const char **pstr, SymTable *ctxt) |
{ |
{ |
const char *tstr; /* Pointer into str */ |
const char *tstr; |
Var *v; /* Variable in invocation */ |
Var *v; |
char paren; /* Parenthesis or brace or nothing */ |
char paren; |
|
const char *str = *pstr; |
const char *start; |
const char *start; |
size_t length; |
size_t length; |
struct Name name; |
struct Name name; |
|
bool result; |
|
|
v = NULL; |
v = NULL; |
start = str; |
start = str; |
|
|
length++; |
length++; |
} |
} |
|
|
if (result != NULL) |
result = true; |
*result = true; |
|
if (*tstr == ':' && paren != '\0') |
if (*tstr == ':' && paren != '\0') |
if (VarModifiers_Apply(NULL, NULL, ctxt, true, NULL, tstr, |
if (VarModifiers_Apply(NULL, NULL, ctxt, true, NULL, tstr, |
paren, &length) == var_Error) |
paren, &length) == var_Error) |
if (result != NULL) |
result = false; |
*result = false; |
*pstr += length; |
return length; |
return result; |
} |
} |
|
|
/* As of now, Var_ParseBuffer is just a wrapper around Var_Parse. For |
/* As of now, Var_ParseBuffer is just a wrapper around Var_Parse. For |