diff options
author | harti <harti@FreeBSD.org> | 2005-05-09 14:06:04 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-05-09 14:06:04 +0000 |
commit | ef37b341c376efaab6437df4baf8531dd11eb641 (patch) | |
tree | 5aba5fcd4ee95bf72b4b360ea351bf814500ce84 /usr.bin/make/var.h | |
parent | 7993c4292d145a1c61b5465ce3735a8c9b867e3f (diff) | |
download | FreeBSD-src-ef37b341c376efaab6437df4baf8531dd11eb641.zip FreeBSD-src-ef37b341c376efaab6437df4baf8531dd11eb641.tar.gz |
Split Var_Subst() into two functions: Var_SubstOnly() which substitutes
only one variable and Var_Subst() which substitutes all. Split out the
test whether a variable should not be expanded into match_var().
Make access to the input string consistently using str[]. Remove two
unused functions: Var_GetTail() and Var_GetHead().
Patches: 7.184-7.189
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/var.h')
-rw-r--r-- | usr.bin/make/var.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/make/var.h b/usr.bin/make/var.h index f5fb9c6..a81e743 100644 --- a/usr.bin/make/var.h +++ b/usr.bin/make/var.h @@ -93,14 +93,13 @@ void Var_Append(const char *, const char *, struct GNode *); void Var_Delete(const char *, struct GNode *); void Var_Dump(const struct GNode *); Boolean Var_Exists(const char *, struct GNode *); -char *Var_GetHead(char *); -char *Var_GetTail(char *); void Var_Init(char **); char *Var_Parse(const char *, struct GNode *, Boolean, size_t *, Boolean *); char *Var_Quote(const char *); void Var_Set(const char *, const char *, struct GNode *); void Var_SetEnv(const char *, struct GNode *); -struct Buffer *Var_Subst(const char *, const char *, struct GNode *, Boolean); +struct Buffer *Var_Subst(const char *, struct GNode *, Boolean); +struct Buffer *Var_SubstOnly(const char *, const char *, struct GNode *, Boolean); char *Var_Value(const char *, struct GNode *, char **); /* |