X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2FPSPP.xs;h=a66f4427299361e8aad47cc0e19df2342ccb9fdf;hb=refs%2Fbuilds%2F20121106030502%2Fpspp;hp=f8479c6da06a641fc5ce8c92a271aa87f25565e2;hpb=45e399fd4cd4f77c5c27c3cfbb022dde6a870bde;p=pspp diff --git a/perl-module/PSPP.xs b/perl-module/PSPP.xs index f8479c6da0..a66f442729 100644 --- a/perl-module/PSPP.xs +++ b/perl-module/PSPP.xs @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -182,7 +183,7 @@ CODE: i18n_init (); msg_set_handler (message_handler, NULL); - settings_init (0, 0); + settings_init (); fh_init (); SV * @@ -567,13 +568,12 @@ MODULE = PSPP PACKAGE = PSPP::Sysfile struct sysfile_info * -pxs_create_sysfile (name, dict_ref, opts_hr) +pxs_create_sysfile (name, dict, opts_hr) char *name - SV *dict_ref + struct dictionary *dict; SV *opts_hr INIT: - SV *dict_sv = SvRV (dict_ref); - struct dictionary *dict = (void *) SvIV (dict_sv); + SV *dict_sv = ST(1); struct sfm_write_options opts; if (!SvROK (opts_hr)) { @@ -708,7 +708,7 @@ CODE: fh_create_file (NULL, name, fh_default_properties () ); sri = xmalloc (sizeof (*sri)); - sri->reader = sfm_open_reader (fh, &sri->dict, &sri->opts); + sri->reader = sfm_open_reader (fh, NULL, &sri->dict, &sri->opts); if ( NULL == sri->reader) {