diff options
author | harti <harti@FreeBSD.org> | 2005-02-07 16:27:19 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-02-07 16:27:19 +0000 |
commit | 15f29409bafcde8687bea33781ffe84ebc47e35a (patch) | |
tree | 4e118e98459eb3f1c332d959a111b1fb8865b0d6 /usr.bin/make/var.h | |
parent | c300f771987ddaa4c16a5f9d17b2387b55afe1e7 (diff) | |
download | FreeBSD-src-15f29409bafcde8687bea33781ffe84ebc47e35a.zip FreeBSD-src-15f29409bafcde8687bea33781ffe84ebc47e35a.tar.gz |
Introduce a typedef for variable value modifation functions and use it
where appropriate.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/var.h')
-rw-r--r-- | usr.bin/make/var.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/usr.bin/make/var.h b/usr.bin/make/var.h index b2832cc..bdffd5d 100644 --- a/usr.bin/make/var.h +++ b/usr.bin/make/var.h @@ -89,6 +89,8 @@ typedef struct { int flags; } VarREPattern; +typedef Boolean VarModifyProc(const char *, Boolean, struct Buffer *, void *); + /* * var.c */ @@ -97,17 +99,17 @@ void VarREError(int, regex_t *, const char *); /* * var_modify.c */ -Boolean VarHead(const char *, Boolean, struct Buffer *, void *); -Boolean VarTail(const char *, Boolean, struct Buffer *, void *); -Boolean VarSuffix(const char *, Boolean, struct Buffer *, void *); -Boolean VarRoot(const char *, Boolean, struct Buffer *, void *); -Boolean VarMatch(const char *, Boolean, struct Buffer *, void *); +VarModifyProc VarHead; +VarModifyProc VarTail; +VarModifyProc VarSuffix; +VarModifyProc VarRoot; +VarModifyProc VarMatch; #ifdef SYSVVARSUB -Boolean VarSYSVMatch(const char *, Boolean, struct Buffer *, void *); +VarModifyProc VarSYSVMatch; #endif -Boolean VarNoMatch(const char *, Boolean, struct Buffer *, void *); -Boolean VarRESubstitute(const char *, Boolean, struct Buffer *, void *); -Boolean VarSubstitute(const char *, Boolean, struct Buffer *, void *); +VarModifyProc VarNoMatch; +VarModifyProc VarRESubstitute; +VarModifyProc VarSubstitute; void Var_Delete(const char *, struct GNode *); void Var_Set(const char *, const char *, struct GNode *); |