summaryrefslogtreecommitdiff
path: root/vms/vms.c
diff options
context:
space:
mode:
authorCharles Lane <lane@DUPHY4.Physics.Drexel.Edu>2001-10-19 13:45:23 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-19 21:09:27 +0000
commit96e176bf068724d05d4927c116d41d2f78a2560d (patch)
treee18e87ee8dc36dca37fb10687567e52e5db9cd78 /vms/vms.c
parentb8d190ff31df6d51464475a3b67820d11d6c9f06 (diff)
downloadperl-96e176bf068724d05d4927c116d41d2f78a2560d.tar.gz
vmsish fix, ieee rand() cleanup
Message-Id: <011019174427.d749b@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@12513
Diffstat (limited to 'vms/vms.c')
-rw-r--r--vms/vms.c48
1 files changed, 39 insertions, 9 deletions
diff --git a/vms/vms.c b/vms/vms.c
index bd9ed125b4..1150ea3859 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -6911,6 +6911,44 @@ mod2fname(pTHX_ CV *cv)
}
void
+hushexit_fromperl(pTHX_ CV *cv)
+{
+ dXSARGS;
+
+ if (items > 0) {
+ VMSISH_HUSHED = SvTRUE(ST(0));
+ }
+ ST(0) = boolSV(VMSISH_HUSHED);
+ XSRETURN(1);
+}
+
+void
+Perl_sys_intern_dup(pTHX_ struct interp_intern *src,
+ struct interp_intern *dst)
+{
+ memcpy(dst,src,sizeof(struct interp_intern));
+}
+
+void
+Perl_sys_intern_clear(pTHX)
+{
+}
+
+void
+Perl_sys_intern_init(pTHX)
+{
+ int ix = RAND_MAX;
+ float x;
+
+ VMSISH_HUSHED = 0;
+
+ x = (float)ix;
+ MY_INV_RAND_MAX = 1./x;
+}
+
+
+
+void
init_os_extras()
{
dTHX;
@@ -6932,18 +6970,10 @@ init_os_extras()
newXSproto("VMS::Filespec::candelete",candelete_fromperl,file,"$");
newXSproto("DynaLoader::mod2fname", mod2fname, file, "$");
newXS("File::Copy::rmscopy",rmscopy_fromperl,file);
+ newXSproto("vmsish::hushed",hushexit_fromperl,file,";$");
store_pipelocs(aTHX);
-#ifdef Drand01_is_rand
-/* this hackery brought to you by a bug in DECC for /ieee=denorm */
- {
- int ix = RAND_MAX;
- float x = (float)ix;
- PL_my_inv_rand_max = 1./x;
- }
-#endif
-
return;
}