summaryrefslogtreecommitdiff
path: root/win32/config_H.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_H.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_H.bc')
-rw-r--r--win32/config_H.bc2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/config_H.bc b/win32/config_H.bc
index ef1193e222..1883e973c1 100644
--- a/win32/config_H.bc
+++ b/win32/config_H.bc
@@ -1511,7 +1511,7 @@
* d_Gconvert='sprintf((b),"%.*g",(n),(x))'
* The last two assume trailing zeros should not be kept.
*/
-#define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x))
+#define Gconvert(x,n,t,b) gcvt((x),(n),(b))
/* HAS_GETPGID:
* This symbol, if defined, indicates to the C program that