summaryrefslogtreecommitdiff
path: root/variable.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-10-25 00:26:34 +0000
committerPaul Smith <psmith@gnu.org>2009-10-25 00:26:34 +0000
commit606cf9b169f23b8d87b20ea02b235df8fa66c2d8 (patch)
tree4e2d4f7e9118fff37e91b4a1377d171dc4f6ca36 /variable.h
parent131f1157301f3626eb014ef0a17bb4d52f1106dc (diff)
downloadgunmake-606cf9b169f23b8d87b20ea02b235df8fa66c2d8.tar.gz
Various simple code cleanups.
Diffstat (limited to 'variable.h')
-rw-r--r--variable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/variable.h b/variable.h
index 84ae55e..dbaef67 100644
--- a/variable.h
+++ b/variable.h
@@ -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) \