3 # Written: 10 April 1996 Gary Ng (71564.1743@compuserve.com)
5 # Create the export list for perl.
6 # Needed by WIN32 for creating perl.dll
7 # based on perl_exp.SH in the main perl distribution directory
9 # This simple program relys on 'global.sym' being up to date
10 # with all of the global symbols that a dynamicly link library
11 # might want to access.
13 # There is some symbol defined in global.sym and interp.sym
14 # that does not present in the WIN32 port but there is no easy
15 # way to find them so I just put a exeception list here
17 $skip_sym=<<'!END!OF!SKIP!';
113 Perl_too_few_arguments
114 Perl_too_many_arguments
144 # All symbols have a Perl_ prefix because that's what embed.h
145 # sticks in front of them.
148 print "LIBRARY Perl\n";
149 print "DESCRIPTION 'Perl interpreter, export autogenerated'\n";
150 print "CODE LOADONCALL\n";
151 print "DATA LOADONCALL NONSHARED MULTIPLE\n";
154 open (GLOBAL, "<../global.sym") || die "failed to open global.sym" . $!;
157 next if (!/^[A-Za-z]/);
158 next if (/_amg[ \t]*$/);
160 next if ($skip_sym =~ m/$symbol/m);
165 # also add symbols from interp.sym
166 # They are only needed if -DMULTIPLICITY is not set but it
167 # doesn't hurt to include them anyway.
168 # these don't have Perl prefix
170 open (INTERP, "<../interp.sym") || die "failed to open interp.sym" . $!;
173 next if (!/^[A-Za-z]/);
174 next if (/_amg[ \t]*$/);
176 next if ($skip_sym =~ m/$symbol/m);
178 print "\tPerl_$symbol";
185 next if (!/^[A-Za-z]/);
188 next if ($skip_sym =~ m/^$symbol/m);
194 # extra globals not included above.
293 win32_getprotobynumber