X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsplit-file.c;h=c9e144f9050d5041876f06764690f4be1333696b;hb=5ff91bd55867848d448c2f09bc7057cc1fb77b18;hp=bffcd5b18007d1c135b76e0e77467794fa233560;hpb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;p=pspp diff --git a/src/split-file.c b/src/split-file.c index bffcd5b180..c9e144f905 100644 --- a/src/split-file.c +++ b/src/split-file.c @@ -14,13 +14,14 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include #include "alloc.h" #include "command.h" +#include "dictionary.h" #include "error.h" #include "lexer.h" #include "str.h" @@ -29,16 +30,16 @@ int cmd_split_file (void) { - lex_match_id ("SPLIT"); - lex_match_id ("FILE"); - if (lex_match_id ("OFF")) dict_set_split_vars (default_dict, NULL, 0); else { struct variable **v; - int n; + size_t n; + /* For now, ignore SEPARATE and LAYERED. */ + lex_match_id ("SEPARATE") || lex_match_id ("LAYERED"); + lex_match (T_BY); if (!parse_variables (default_dict, &v, &n, PV_NO_DUPLICATE)) return CMD_FAILURE;