indirectly from GET.
* automake.mk: Remove get-data.h from sources.
* get-data.h: Removed.
* get-data.c (parse_get_data_command): Rename cmd_get_data.
* get.c (parse_read_command): No longer any need to check for DATA
keyword.
* command.def: Add GET DATA command.
+2007-12-04 Ben Pfaff <blp@gnu.org>
+
+ * command.def: Add GET DATA command.
+
2007-11-05 Ben Pfaff <blp@gnu.org>
Patch #6258. Reviewed by John Darrington.
/* Commands that define (or replace) the active file. */
DEF_CMD (S_INITIAL | S_DATA | S_INPUT_PROGRAM | S_FILE_TYPE, 0, "DATA LIST", cmd_data_list)
DEF_CMD (S_INITIAL | S_DATA, 0, "GET", cmd_get)
+DEF_CMD (S_INITIAL | S_DATA, 0, "GET DATA", cmd_get_data)
DEF_CMD (S_INITIAL | S_DATA, 0, "IMPORT", cmd_import)
DEF_CMD (S_INITIAL | S_DATA, 0, "INPUT PROGRAM", cmd_input_program)
+2007-12-04 Ben Pfaff <blp@gnu.org>
+
+ Make GET DATA a separate command, instead of something invoked
+ indirectly from GET.
+
+ * automake.mk: Remove get-data.h from sources.
+
+ * get-data.h: Removed.
+
+ * get-data.c (parse_get_data_command): Rename cmd_get_data.
+
+ * get.c (parse_read_command): No longer any need to check for DATA
+ keyword.
+
2007-12-04 Ben Pfaff <blp@gnu.org>
* src/language/data-io/data-reader.c (struct dfm_reader): New
src/language/data-io/data-list.c \
src/language/data-io/get.c \
src/language/data-io/get-data.c \
- src/language/data-io/get-data.h \
src/language/data-io/inpt-pgm.c \
src/language/data-io/inpt-pgm.h \
src/language/data-io/print.c \
#include <config.h>
-#include "get-data.h"
#include <libpspp/message.h>
#include <data/gnumeric-reader.h>
static int parse_get_gnm (struct lexer *lexer, struct dataset *);
int
-parse_get_data_command (struct lexer *lexer, struct dataset *ds)
+cmd_get_data (struct lexer *lexer, struct dataset *ds)
{
lex_force_match (lexer, '/');
+++ /dev/null
-/* PSPP - a program for statistical analysis.
- Copyright (C) 2007 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
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef GET_DATA_H
-#define GET_DATA_H
-
-struct lexer;
-struct dataset;
-
-int parse_get_data_command (struct lexer *lexer, struct dataset *ds);
-
-
-#endif
#include <libpspp/str.h>
#include <libpspp/taint.h>
-#include "get-data.h"
-
#include "xalloc.h"
#include "gettext.h"
struct dictionary *dict = NULL;
struct case_map *map = NULL;
- if ( type == GET_CMD && lex_match_id (lexer, "DATA") )
- {
- return parse_get_data_command (lexer, ds);
- }
-
for (;;)
{
lex_match (lexer, '/');