output: Add null sentinel automatically to parse_enum() arguments.
[pspp] / src / output / options.c
index c05ea746c04d199e6f936d60ef5107af9fffdb5a..227b132aa0d34932abeaba0b85250a7784b21688 100644 (file)
@@ -107,10 +107,10 @@ parse_boolean (struct driver_option o)
    O has no user-specified value, then O's default value is treated the same
    way.  If the default value still does not match, parse_enum() returns 0.
 
-   Example: parse_enum (o, "a", 1, "b", 2, NULL_SENTINEL) returns 1 if O's
-   value if "a", 2 if O's value is "b". */
+   Example: parse_enum (o, "a", 1, "b", 2) returns 1 if O's value if "a", 2 if
+   O's value is "b". */
 int
-parse_enum (struct driver_option o, ...)
+(parse_enum) (struct driver_option o, ...)
 {
   va_list args;
   va_start (args, o);