version 1.29, 2003/06/03 02:56:11 |
version 1.30, 2004/04/07 13:11:35 |
|
|
* lines */ |
* lines */ |
|
|
static const char * |
static const char * |
find_cond(p) |
find_cond(const char *p) |
const char *p; |
|
{ |
{ |
for (;;p++) { |
for (;;p++) { |
if (strchr(" \t)&|$", *p) != NULL) |
if (strchr(" \t)&|$", *p) != NULL) |
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static bool |
static bool |
CondGetArg(linePtr, arg, func, parens) |
CondGetArg(const char **linePtr, struct Name *arg, const char *func, |
const char **linePtr; |
bool parens) /* true if arg should be bounded by parens */ |
struct Name *arg; |
|
const char *func; |
|
bool parens; /* true if arg should be bounded by parens */ |
|
{ |
{ |
const char *cp; |
const char *cp; |
|
|
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static bool |
static bool |
CondDoDefined(arg) |
CondDoDefined(struct Name *arg) |
struct Name *arg; |
|
{ |
{ |
if (Var_Valuei(arg->s, arg->e) != NULL) |
if (Var_Valuei(arg->s, arg->e) != NULL) |
return true; |
return true; |
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static bool |
static bool |
CondDoMake(arg) |
CondDoMake(struct Name *arg) |
struct Name *arg; |
|
{ |
{ |
LstNode ln; |
LstNode ln; |
|
|
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static bool |
static bool |
CondDoExists(arg) |
CondDoExists(struct Name *arg) |
struct Name *arg; |
|
{ |
{ |
bool result; |
bool result; |
char *path; |
char *path; |
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static bool |
static bool |
CondDoTarget(arg) |
CondDoTarget(struct Name *arg) |
struct Name *arg; |
|
{ |
{ |
GNode *gn; |
GNode *gn; |
|
|
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static bool |
static bool |
CondCvtArg(str, value) |
CondCvtArg(const char *str, double *value) |
const char *str; |
|
double *value; |
|
{ |
{ |
if (*str == '0' && str[1] == 'x') { |
if (*str == '0' && str[1] == 'x') { |
long i; |
long i; |
|
|
|
|
|
|
static Token |
static Token |
CondHandleVarSpec(doEval) |
CondHandleVarSpec(bool doEval) |
bool doEval; |
|
{ |
{ |
Token t; |
Token t; |
char *lhs; |
char *lhs; |
|
|
{NULL, 0, NULL} |
{NULL, 0, NULL} |
}; |
}; |
static Token |
static Token |
CondHandleDefault(doEval) |
CondHandleDefault(bool doEval) |
bool doEval; |
|
{ |
{ |
bool t; |
bool t; |
bool (*evalProc)(struct Name *); |
bool (*evalProc)(struct Name *); |
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static Token |
static Token |
CondToken(doEval) |
CondToken(bool doEval) |
bool doEval; |
|
{ |
{ |
|
|
if (condPushBack != None) { |
if (condPushBack != None) { |
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static Token |
static Token |
CondT(doEval) |
CondT(bool doEval) |
bool doEval; |
|
{ |
{ |
Token t; |
Token t; |
|
|
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static Token |
static Token |
CondF(doEval) |
CondF(bool doEval) |
bool doEval; |
|
{ |
{ |
Token l, o; |
Token l, o; |
|
|
|
|
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
static Token |
static Token |
CondE(doEval) |
CondE(bool doEval) |
bool doEval; |
|
{ |
{ |
Token l, o; |
Token l, o; |
|
|
|
|
} |
} |
|
|
void |
void |
Cond_End() |
Cond_End(void) |
{ |
{ |
int i; |
int i; |
|
|