X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsplit-file.c;h=c9e144f9050d5041876f06764690f4be1333696b;hb=b9799cdd10b30ea96d9178b7a0d48504d052228c;hp=6eba150b9928032db393430dbcd0c9083a4e0fda;hpb=74a57f26f1458b28a0fddbb9f46004ac8f4d9c30;p=pspp-builds.git diff --git a/src/split-file.c b/src/split-file.c index 6eba150b..c9e144f9 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" @@ -34,8 +35,11 @@ cmd_split_file (void) 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;