diff options
author | Paul Smith <psmith@gnu.org> | 2009-10-25 00:26:34 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2009-10-25 00:26:34 +0000 |
commit | 606cf9b169f23b8d87b20ea02b235df8fa66c2d8 (patch) | |
tree | 4e2d4f7e9118fff37e91b4a1377d171dc4f6ca36 /variable.h | |
parent | 131f1157301f3626eb014ef0a17bb4d52f1106dc (diff) | |
download | gunmake-606cf9b169f23b8d87b20ea02b235df8fa66c2d8.tar.gz |
Various simple code cleanups.
Diffstat (limited to 'variable.h')
-rw-r--r-- | variable.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -180,6 +180,12 @@ struct variable *define_variable_in_set (const char *name, unsigned int length, define_variable_in_set((n),(l),(v),(o),(r),\ current_variable_set_list->set,NILF) +/* Define a variable with a constant name in the current variable set. */ + +#define define_variable_cname(n,v,o,r) \ + define_variable_in_set((n),(sizeof (n) - 1),(v),(o),(r),\ + current_variable_set_list->set,NILF) + /* Define a variable with a location in the current variable set. */ #define define_variable_loc(n,l,v,o,r,f) \ |