version 1.21, 2000/06/23 16:18:09 |
version 1.22, 2000/06/23 16:20:01 |
|
|
* 17) a Lst of strings that are commands to be given to a shell |
* 17) a Lst of strings that are commands to be given to a shell |
* to create this target. |
* to create this target. |
*/ |
*/ |
|
typedef LIST SymTable; |
|
|
typedef struct GNode { |
typedef struct GNode { |
char *name; /* The target's name */ |
char *name; /* The target's name */ |
char *path; /* The full pathname of the file */ |
char *path; /* The full pathname of the file */ |
|
|
LIST successors; /* Nodes that must be made after this one */ |
LIST successors; /* Nodes that must be made after this one */ |
LIST preds; /* Nodes that must be made before this one */ |
LIST preds; /* Nodes that must be made before this one */ |
|
|
LIST context; /* The local variables */ |
SymTable context; /* The local variables */ |
unsigned long lineno; /* First line number of commands. */ |
unsigned long lineno; /* First line number of commands. */ |
const char * fname; /* File name of commands. */ |
const char * fname; /* File name of commands. */ |
LIST commands; /* Creation commands */ |
LIST commands; /* Creation commands */ |
|
|
|
|
extern GNode *DEFAULT; /* .DEFAULT rule */ |
extern GNode *DEFAULT; /* .DEFAULT rule */ |
|
|
extern GNode *VAR_GLOBAL; /* Variables defined in a global context, e.g |
extern SymTable *VAR_GLOBAL; /* Variables defined in a global context, e.g |
* in the Makefile itself */ |
* in the Makefile itself */ |
extern GNode *VAR_CMD; /* Variables defined on the command line */ |
extern SymTable *VAR_CMD; /* Variables defined on the command line */ |
extern char var_Error[]; /* Value returned by Var_Parse when an error |
extern char var_Error[]; /* Value returned by Var_Parse when an error |
* is encountered. It actually points to |
* is encountered. It actually points to |
* an empty string, so naive callers needn't |
* an empty string, so naive callers needn't |