… | |
… | |
977 | } |
977 | } |
978 | |
978 | |
979 | XSRETURN ($varpfx\_count); |
979 | XSRETURN ($varpfx\_count); |
980 | } |
980 | } |
981 | |
981 | |
|
|
982 | #ifdef STATICPERL_BUNDLE_INCLUDE |
|
|
983 | #include STATICPERL_BUNDLE_INCLUDE |
|
|
984 | #endif |
|
|
985 | |
982 | EOF |
986 | EOF |
983 | |
987 | |
984 | ############################################################################# |
988 | ############################################################################# |
985 | # xs_init |
989 | # xs_init |
986 | |
990 | |
… | |
… | |
1003 | char *file = __FILE__; |
1007 | char *file = __FILE__; |
1004 | dXSUB_SYS; |
1008 | dXSUB_SYS; |
1005 | |
1009 | |
1006 | newXSproto ("$PACKAGE\::find", find, file, "\$"); |
1010 | newXSproto ("$PACKAGE\::find", find, file, "\$"); |
1007 | newXSproto ("$PACKAGE\::list", list, file, ""); |
1011 | newXSproto ("$PACKAGE\::list", list, file, ""); |
|
|
1012 | |
|
|
1013 | #ifdef STATICPERL_BUNDLE_XS_INIT |
|
|
1014 | STATICPERL_BUNDLE_XS_INIT; |
|
|
1015 | #endif |
1008 | EOF |
1016 | EOF |
1009 | |
1017 | |
1010 | # calls |
1018 | # calls |
1011 | for (@static_ext) { |
1019 | for (@static_ext) { |
1012 | s/\.pm$//; |
1020 | s/\.pm$//; |
… | |
… | |
1018 | |
1026 | |
1019 | print $fh " newXS (\"$pname\::$bootstrap\", boot_$cname, file);\n"; |
1027 | print $fh " newXS (\"$pname\::$bootstrap\", boot_$cname, file);\n"; |
1020 | } |
1028 | } |
1021 | |
1029 | |
1022 | print $fh <<EOF; |
1030 | print $fh <<EOF; |
|
|
1031 | Safefree (PL_origfilename); |
|
|
1032 | PL_origfilename = savepv (PL_origargv [0]); |
|
|
1033 | sv_setpv (GvSV (gv_fetchpvs ("0", GV_ADD|GV_NOTQUAL, SVt_PV)), PL_origfilename); |
|
|
1034 | |
1023 | #ifdef _WIN32 |
1035 | #ifdef _WIN32 |
1024 | /* windows perls usually trail behind unix perls 8-10 years in exporting symbols */ |
1036 | /* windows perls usually trail behind unix perls 8-10 years in exporting symbols */ |
1025 | |
1037 | |
1026 | if (!PL_preambleav) |
1038 | if (!PL_preambleav) |
1027 | PL_preambleav = newAV (); |
1039 | PL_preambleav = newAV (); |