From 606cf9b169f23b8d87b20ea02b235df8fa66c2d8 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 25 Oct 2009 00:26:34 +0000 Subject: Various simple code cleanups. --- variable.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'variable.h') 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) \ -- cgit v1.2.3