diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-09 19:04:22 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-09 19:04:22 +0000 |
commit | db2b0bab8e5c98bc74fde3b86eb3523fbfef5650 (patch) | |
tree | abc1d50e82bef27024e2bcfd04643efa77cd7657 /embed.pl | |
parent | 05ef2f67942fd3cfa0c9e6043d11b82a5ddbc805 (diff) | |
download | perl-db2b0bab8e5c98bc74fde3b86eb3523fbfef5650.tar.gz |
Export the symbols from #18863; do not prototype (but export)
Nicholas Clark's experimental COW functions.
Sidenote: the embed.fnc/embed.fnc/makedef.pl thing is becoming
a mess of Herculean proportions. Someone should redesign and
clean up the stables.
p4raw-id: //depot/perl@18868
Diffstat (limited to 'embed.pl')
-rwxr-xr-x | embed.pl | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -156,7 +156,7 @@ sub write_protos { } else { my ($flags,$retval,$func,@args) = @_; - $ret .= '/* ' if $flags =~ /m/; + $ret .= '/* ' if $flags =~ /[mX]/; if ($flags =~ /s/) { $retval = "STATIC $retval"; $func = "S_$func"; @@ -189,7 +189,7 @@ sub write_protos { $ret .= "\n#endif\n"; } $ret .= ";"; - $ret .= ' */' if $flags =~ /m/; + $ret .= ' */' if $flags =~ /[mX]/; $ret .= "\n"; } $ret; @@ -200,8 +200,9 @@ sub write_global_sym { my $ret = ""; if (@_ > 1) { my ($flags,$retval,$func,@args) = @_; - if ($flags =~ /A/ && $flags !~ /[xm]/) { # public API, so export - $func = "Perl_$func" if $flags =~ /p/; + if ($flags =~ /[AX]/ && $flags !~ /[xm]/ + || $flags =~ /b/) { # public API, so export + $func = "Perl_$func" if $flags =~ /[pbX]/; $ret = "$func\n"; } } |