diff options
author | Paul Smith <psmith@gnu.org> | 2011-04-18 01:25:20 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2011-04-18 01:25:20 +0000 |
commit | b34438bee83ee906a23b881f257e684a0993b9b1 (patch) | |
tree | 0e3e16d626762ad9341d6fad782a12080c795c45 /variable.h | |
parent | 1454a04f81708850353dbdc0807a099c5aaab55b (diff) | |
download | gunmake-b34438bee83ee906a23b881f257e684a0993b9b1.tar.gz |
Add new feature: != shell assignment for portability with BSD make.
Feature submitted by David Wheeler.
Diffstat (limited to 'variable.h')
-rw-r--r-- | variable.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -38,7 +38,8 @@ enum variable_flavor f_simple, /* Simple definition (:=) */ f_recursive, /* Recursive definition (=) */ f_append, /* Appending definition (+=) */ - f_conditional /* Conditional definition (?=) */ + f_conditional, /* Conditional definition (?=) */ + f_shell /* Shell assignment (!=) */ }; /* Structure that represents one variable definition. @@ -134,6 +135,8 @@ char *patsubst_expand_pat (char *o, const char *text, const char *pattern, const char *replace, const char *pattern_percent, const char *replace_percent); char *patsubst_expand (char *o, const char *text, char *pattern, char *replace); +char *func_shell_base (char *o, char **argv, int trim_newlines); + /* expand.c */ char *recursively_expand_for_file (struct variable *v, struct file *file); |