X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fdata-io%2Fsave.c;h=b97da69b00eff3a278aeb18762820f7c76ac15c2;hb=b5a56f8d1592fd0d9bf981d71e28851c4e733fef;hp=e01a8c941edd24f3989c11db9c9bb7588850e99e;hpb=016e159c842c81a26b32b4e220fd5fb1edfde049;p=pspp diff --git a/src/language/data-io/save.c b/src/language/data-io/save.c index e01a8c941e..b97da69b00 100644 --- a/src/language/data-io/save.c +++ b/src/language/data-io/save.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 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 @@ -234,10 +234,13 @@ parse_write_command (struct lexer *lexer, struct dataset *ds, } else if (writer_type == SYSFILE_WRITER && lex_match_id (lexer, "COMPRESSED")) - sysfile_opts.compress = true; + sysfile_opts.compression = ANY_COMP_SIMPLE; else if (writer_type == SYSFILE_WRITER && lex_match_id (lexer, "UNCOMPRESSED")) - sysfile_opts.compress = false; + sysfile_opts.compression = ANY_COMP_NONE; + else if (writer_type == SYSFILE_WRITER + && lex_match_id (lexer, "ZCOMPRESSED")) + sysfile_opts.compression = ANY_COMP_ZLIB; else if (writer_type == SYSFILE_WRITER && lex_match_id (lexer, "VERSION")) {