diff options
author | harti <harti@FreeBSD.org> | 2005-02-01 10:50:37 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-02-01 10:50:37 +0000 |
commit | b24cc988512ed34d0854c1b8adc8f42b8abecbd5 (patch) | |
tree | ad58e65b384352ba6b76d8d9e9ad5ae790aaf99f /usr.bin/make/var.h | |
parent | b0d098fb3c0b0335d47a860cc6fb174948400795 (diff) | |
download | FreeBSD-src-b24cc988512ed34d0854c1b8adc8f42b8abecbd5.zip FreeBSD-src-b24cc988512ed34d0854c1b8adc8f42b8abecbd5.tar.gz |
Clean up include files and file including. Split nonints.h into pieces
that get included just where they are needed. All headers include the
headers that they need to compile (just with an empty .c file). Sort
includes alphabetically where apropriate and fix some duplicate commenting
for struct Job, struct GNode and struct Shell by removing one version and
inlining the comments into the structure declaration (the comments have been
somewhat outdated).
This patch does not contain functional changes (checked with md5).
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/var.h')
-rw-r--r-- | usr.bin/make/var.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/usr.bin/make/var.h b/usr.bin/make/var.h index 530577e..a52e684 100644 --- a/usr.bin/make/var.h +++ b/usr.bin/make/var.h @@ -39,6 +39,16 @@ * $FreeBSD$ */ +#ifndef var_h_9cccafce +#define var_h_9cccafce + +#include <regex.h> + +#include "buf.h" +#include "config.h" + +struct GNode; + typedef struct Var { char *name; /* the variable's name */ Buffer val; /* its value */ @@ -95,3 +105,18 @@ Boolean VarSYSVMatch(const char *, Boolean, Buffer, void *); Boolean VarNoMatch(const char *, Boolean, Buffer, void *); Boolean VarRESubstitute(const char *, Boolean, Buffer, void *); Boolean VarSubstitute(const char *, Boolean, Buffer, void *); + +void Var_Delete(char *, struct GNode *); +void Var_Set(char *, char *, struct GNode *); +void Var_Append(char *, char *, struct GNode *); +Boolean Var_Exists(char *, struct GNode *); +char *Var_Value(char *, struct GNode *, char **); +char *Var_Quote(const char *); +char *Var_Parse(char *, struct GNode *, Boolean, size_t *, Boolean *); +char *Var_Subst(char *, char *, struct GNode *, Boolean); +char *Var_GetTail(char *); +char *Var_GetHead(char *); +void Var_Init(void); +void Var_Dump(struct GNode *); + +#endif /* var_h_9cccafce */ |