At one time various categories of symbols were listed after __DATA__.
All others are now dealt with elsewhere, leaving only some PerlIO symbols, at
which point it becomes clearer and terser to move the list to the point in the
code that previously looped over <DATA>.
# perlio.sym
# perlvars.h
#
-# plus long lists of function names hard-coded directly in this script and
-# in the DATA section.
+# plus long lists of function names hard-coded directly in this script.
#
# Writes the result to STDOUT.
#
# Also do NOT add abstraction symbols from $perlio_sym
# abstraction is done as #define to stdio
- # Remaining remnants that _may_ be functions
- # are handled in <DATA>
+ # Remaining remnants that _may_ be functions are handled below.
}
for my $syms (@syms) {
emit_symbol($symbol);
}
-while (<DATA>) {
- try_symbol($_);
-}
+# Oddities from PerlIO
+emit_symbols([qw(
+ PerlIO_binmode
+ PerlIO_getpos
+ PerlIO_init
+ PerlIO_setpos
+ PerlIO_sprintf
+ PerlIO_sv_dup
+ PerlIO_tmpfile
+ PerlIO_vsprintf
+ )]);
if ($PLATFORM eq 'win32') {
try_symbol($_) foreach qw(
}
1;
-__DATA__
-# Oddities from PerlIO
-PerlIO_binmode
-PerlIO_getpos
-PerlIO_init
-PerlIO_setpos
-PerlIO_sprintf
-PerlIO_sv_dup
-PerlIO_tmpfile
-PerlIO_vsprintf