q2c: Use new subc_list_error() to report too many subcommands.
[pspp-builds.git] / src / language / lexer / subcommand-list.h
index 74c53da2913f9f0299048042f2c5868b3322412b..8d664f5665de749fdaf294c0a2f95917743aab6f 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
    It is intended for use by the command line parser for list subcommands
 */
 
+struct lexer;
 
 struct subc_list_double {
   double *data ;
@@ -61,5 +62,6 @@ int subc_list_int_count(const subc_list_int *l);
 void subc_list_double_destroy(subc_list_double *l) ;
 void subc_list_int_destroy(subc_list_int *l) ;
 
+void subc_list_error (struct lexer *, const char *sbc, int max_list);
 
 #endif