summaryrefslogtreecommitdiffstats
path: root/args.h
diff options
context:
space:
mode:
Diffstat (limited to 'args.h')
-rw-r--r--args.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/args.h b/args.h
index e023e290..d2d87de4 100644
--- a/args.h
+++ b/args.h
@@ -30,7 +30,7 @@ struct args {
cnum argc;
cnum fill;
val list;
- val arg[1];
+ val arg[FLEX_ARRAY];
};
typedef int arg_index;
@@ -38,6 +38,12 @@ typedef int arg_index;
#define ARGS_MAX 32
#define ARGS_MIN 4
+#if FLEX_ARRAY + 0 == 1
+#define ARGS_ABS_MIN 1
+#else
+#define ARGS_ABS_MIN 0
+#endif
+
struct args_bool_key {
val key;
val arg_p;