version 1.22, 2000/06/23 16:20:01 |
version 1.23, 2000/06/23 16:23:26 |
|
|
#define PREFIX_INDEX 4 |
#define PREFIX_INDEX 4 |
#define ARCHIVE_INDEX 5 |
#define ARCHIVE_INDEX 5 |
#define MEMBER_INDEX 6 |
#define MEMBER_INDEX 6 |
|
|
|
#define LOCAL_SIZE 7 |
|
|
|
/* SymTable is private to var.c, but is declared here to allow for |
|
local declaration of context tables |
|
*/ |
|
typedef struct { |
|
struct Var_ *locals[LOCAL_SIZE]; |
|
} SymTable; |
|
|
|
typedef LIST GSymT; |
/*- |
/*- |
* The structure for an individual graph node. Each node has several |
* The structure for an individual graph node. Each node has several |
* pieces of data associated with it. |
* pieces of data associated with it. |
|
|
* 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 */ |
|
|
|
|
extern GNode *DEFAULT; /* .DEFAULT rule */ |
extern GNode *DEFAULT; /* .DEFAULT rule */ |
|
|
extern SymTable *VAR_GLOBAL; /* Variables defined in a global context, e.g |
extern GSymT *VAR_GLOBAL; /* Variables defined in a global context, e.g |
* in the Makefile itself */ |
* in the Makefile itself */ |
extern SymTable *VAR_CMD; /* Variables defined on the command line */ |
extern GSymT *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 |