X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fmodify-variables.c;h=b9a8a28eecc06cad545030837b75fa893f919e8b;hb=01c3f002d3a9ad239bb145c4a20dccdef75b0775;hp=aae81222c5d8d475ccc7873a857933b457f35515;hpb=23e4750c9a2fbc89126fe7be83ee7a3c1914cc07;p=pspp diff --git a/src/language/dictionary/modify-variables.c b/src/language/dictionary/modify-variables.c index aae81222c5..b9a8a28eec 100644 --- a/src/language/dictionary/modify-variables.c +++ b/src/language/dictionary/modify-variables.c @@ -18,21 +18,21 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "xalloc.h" +#include "data/dataset.h" +#include "data/dictionary.h" +#include "data/variable.h" +#include "language/command.h" +#include "language/lexer/lexer.h" +#include "language/lexer/variable-parser.h" +#include "libpspp/array.h" +#include "libpspp/assertion.h" +#include "libpspp/bit-vector.h" +#include "libpspp/compiler.h" +#include "libpspp/message.h" +#include "libpspp/misc.h" +#include "libpspp/str.h" + +#include "gl/xalloc.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -79,7 +79,7 @@ cmd_modify_vars (struct lexer *lexer, struct dataset *ds) this type. */ unsigned already_encountered = 0; - /* What we're gonna do to the active file. */ + /* What we are going to do to the active dataset. */ struct var_modification vm; /* Return code. */ @@ -200,8 +200,8 @@ cmd_modify_vars (struct lexer *lexer, struct dataset *ds) "names on RENAME subcommand.")); goto done; } - if (!parse_DATA_LIST_vars (lexer, &vm.new_names, - &prev_nv_1, PV_APPEND)) + if (!parse_DATA_LIST_vars (lexer, dataset_dict (ds), + &vm.new_names, &prev_nv_1, PV_APPEND)) goto done; if (prev_nv_1 != vm.rename_cnt) {