isl_pip and isl_cat: terminate isl_arg array with ISL_ARG_END
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 19 Apr 2010 15:56:54 +0000 (17:56 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 19 Apr 2010 16:00:11 +0000 (18:00 +0200)
On most systems, leaving it out apparently just happens to work,
but not so on MacOS X.

Problem reported and analyzed by Tomofumi Yuki <yuki@cs.colostate.edu>

cat.c
pip.c

diff --git a/cat.c b/cat.c
index 5787242..a737508 100644 (file)
--- a/cat.c
+++ b/cat.c
@@ -17,6 +17,7 @@ struct isl_arg cat_options_arg[] = {
 ISL_ARG_CHILD(struct cat_options, isl, "isl", isl_options_arg)
 ISL_ARG_CHOICE(struct cat_options, format, 0, "format", \
        cat_format,     ISL_FORMAT_ISL)
+ISL_ARG_END
 };
 
 ISL_ARG_DEF(cat_options, struct cat_options, cat_options_arg)
diff --git a/pip.c b/pip.c
index 5a7f274..916a2f4 100644 (file)
--- a/pip.c
+++ b/pip.c
@@ -42,6 +42,7 @@ struct pip_options {
 struct isl_arg pip_options_arg[] = {
 ISL_ARG_CHILD(struct pip_options, isl, "isl", isl_options_arg)
 ISL_ARG_BOOL(struct pip_options, verify, 'T', "verify", 0)
+ISL_ARG_END
 };
 
 ISL_ARG_DEF(pip_options, struct pip_options, pip_options_arg)