X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=reentr.pl;h=b90c61dcfc4479523ba1bdab0c3472788e9d746d;hb=4c95a2f580386f7541420f402383c0e39e83a19c;hp=be15c40609f640c874a891794e2759df680dac32;hpb=424a4936e3f61f4e8db394f496a116e698cede85;p=p5sagit%2Fp5-mst-13.2.git diff --git a/reentr.pl b/reentr.pl index be15c40..b90c61d 100644 --- a/reentr.pl +++ b/reentr.pl @@ -1,9 +1,20 @@ #!/usr/bin/perl -w - -# -# Generate the reentr.c and reentr.h, -# and optionally also the relevant metaconfig units (-U option). # +# Regenerate (overwriting only if changed): +# +# reentr.h +# reentr.c +# +# from information stored in the DATA section of this file. +# +# With the -U option, it also unconditionally regenerates the relevant +# metaconfig units: +# +# d_${func}_r.U +# +# Also accepts the standard regen_lib -q and -v args. +# +# This script is normally invoked from regen.pl. BEGIN { # Get function prototypes @@ -504,7 +515,7 @@ EOF EOF pushssif $endif; } - elsif ($func =~ /^(drand48|gmtime|localtime|random|srandom)$/) { + elsif ($func =~ /^(drand48|random|srandom)$/) { pushssif $ifdef; push @struct, <