MODULE = PSPP
-BOOT:
+MODULE = PSPP PACKAGE = PSPP
+
+void
+onBoot (ver)
+ const char *ver
+CODE:
+ assert (0 == strcmp (ver, bare_version));
msg_init (NULL, message_handler);
settings_init (0, 0);
fh_init ();
-
-MODULE = PSPP PACKAGE = PSPP
-
SV *
format_value (val, var)
SV *val
OUTPUT:
RETVAL
-
use strict;
use warnings;
-do 'pspp-vers.pl' || die "No version set";
-
=head1 NAME
PSPP - Perl extension to PSPP
None by default.
=cut
+BEGIN {
+ do 'pspp-vers.pl' || die "No version set";
+ require XSLoader;
+ XSLoader::load('PSPP', $PSPP::VERSION);
+}
-require XSLoader;
-XSLoader::load('PSPP', $PSPP::VERSION);
+PSPP::onBoot($PSPP::VERSION);
=pod