X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2FPSPP.xs;h=7577b7ad2c7be4d54b37fad06013aca3d6be0332;hb=0df9cdd3df66caf4353128feff3008289cda8115;hp=802aabf5c0f0216240d52d51e6ae51c81ceb8c06;hpb=a1c1a4ca100da5c40fe8637b1d460e61a4a8668e;p=pspp diff --git a/perl-module/PSPP.xs b/perl-module/PSPP.xs index 802aabf5c0..7577b7ad2c 100644 --- a/perl-module/PSPP.xs +++ b/perl-module/PSPP.xs @@ -1,5 +1,5 @@ /* PSPP - computes sample statistics. - Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + Copyright (C) 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 @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include @@ -78,7 +77,7 @@ struct syswriter_info /* A thin wrapper around sfm_reader */ struct sysreader_info { - struct sfm_read_info opts; + struct any_read_info opts; /* A pointer to the reader. The reader is owned by the struct */ struct casereader *reader; @@ -424,7 +423,7 @@ set_label (var, label) struct variable *var; char *label CODE: - var_set_label (var, label, false); + var_set_label (var, label); void @@ -633,8 +632,8 @@ INIT: opts.create_writeable = readonly ? ! SvIV (*readonly) : true; opts.compression = (compress && SvIV (*compress) - ? SFM_COMP_SIMPLE - : SFM_COMP_NONE); + ? ANY_COMP_SIMPLE + : ANY_COMP_NONE); opts.version = version ? SvIV (*version) : 3 ; } CODE: @@ -757,9 +756,8 @@ CODE: struct dictionary *dict; sri = xmalloc (sizeof (*sri)); - sri->reader = sfm_open_reader (fh, NULL, &dict, &sri->opts); - - if ( sri->reader != NULL) + sri->reader = any_reader_open_and_decode (fh, NULL, &dict, &sri->opts); + if (sri->reader) sri->dict = create_pspp_dict (dict); else {