summaryrefslogtreecommitdiff
path: root/win32/config.bc
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@engin.umich.edu>1997-07-24 21:58:46 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +1200
commitad2e33dc060dc2ccf73a5ff1557a69a9b09c30c8 (patch)
tree0e670241aa4a1689b0d301eca76b27617e948922 /win32/config.bc
parent156a3eb7d0abfe7f8bcb0a4ba81b9e48f1777ab9 (diff)
downloadperl-ad2e33dc060dc2ccf73a5ff1557a69a9b09c30c8.tar.gz
win32 extras and embedding
This patch makes the various Win32-specific builtins available in embedded perl. It also fixes a problem with FP errors thrown by the Borland runtime when doing something like C<perl -e "print(1.0e+26 % 1">. The VC runtime doesn't throw those errors because FP errors are off by default in VC, on in Borland. The patch adds code to always turn them off. (This should ultimately be made user-settable via $SIG{FPE}, when we have more robust signal handling). I've also made Borland builds use gcvt(), which is available there, and is much faster than sprintf(). Most of the size of the patch comes from moved code. [editor's note: some of these changes are being applied in the wrong order and changing slightly] p5p-msgid: 199707250232.WAA03421@aatma.engin.umich.edu
Diffstat (limited to 'win32/config.bc')
-rw-r--r--win32/config.bc2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/config.bc b/win32/config.bc
index ab3a429ca6..ad76309e5d 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -81,7 +81,7 @@ cpprun=''
cppstdin=''
cryptlib=''
csh='undef'
-d_Gconvert='sprintf((b),"%.*g",(n),(x))'
+d_Gconvert='gcvt((x),(n),(b))'
d_access='define'
d_alarm='undef'
d_archlib='define'