X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl-module%2FPSPP.xs;h=8800d0bdf4e0e87cbba8f89ec872029181395f59;hb=91c3dcd855f75c3f6ca8b58957f9f663ca01470a;hp=ba43fa58a8b33f22e1e1c356a8cb42ccced5f65a;hpb=a49b940e58f148bf111c647d9b4822025636ff80;p=pspp diff --git a/perl-module/PSPP.xs b/perl-module/PSPP.xs index ba43fa58a8..8800d0bdf4 100644 --- a/perl-module/PSPP.xs +++ b/perl-module/PSPP.xs @@ -1,21 +1,18 @@ /* PSPP - computes sample statistics. 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 - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. 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., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ - + along with this program. If not, see . */ #undef VERSION #include @@ -650,7 +647,7 @@ CODE: swi->opened = true; swi->dict_sv = dict_sv; SvREFCNT_inc (swi->dict_sv); - + RETVAL = swi; OUTPUT: RETVAL @@ -790,7 +787,7 @@ CODE: casenumber n = casereader_get_case_cnt (sfr->reader); if (n == CASENUMBER_MAX) ret = &PL_sv_undef; - else + else ret = newSViv (n); RETVAL = ret; OUTPUT: