X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fxforms%2Fsample.c;h=f2a30a2a58fdbfc5e94958eec4bd65fbdc710464;hb=9ade26c8349b4434008c46cf09bc7473ec743972;hp=6fbc758c2e1329f41d57d626daa9eb8ca75b495a;hpb=9a331fe64eb814ae5c1322e21717a04fb254bf65;p=pspp-builds.git diff --git a/src/language/xforms/sample.c b/src/language/xforms/sample.c index 6fbc758c..f2a30a2a 100644 --- a/src/language/xforms/sample.c +++ b/src/language/xforms/sample.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2009 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2009-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 @@ -21,16 +21,16 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "data/procedure.h" +#include "data/variable.h" +#include "language/command.h" +#include "language/lexer/lexer.h" +#include "libpspp/compiler.h" +#include "libpspp/message.h" +#include "libpspp/str.h" +#include "math/random.h" -#include "xalloc.h" +#include "gl/xalloc.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -111,7 +111,7 @@ cmd_sample (struct lexer *lexer, struct dataset *ds) trns->frac = frac; add_transformation (ds, sample_trns_proc, sample_trns_free, trns); - return lex_end_of_command (lexer); + return CMD_SUCCESS; } /* Executes a SAMPLE transformation. */