summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-03-27 04:46:23 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-03-27 04:46:23 +0000
commit0f85fab05fafa513bd55a9e1ab280aac5567e27a (patch)
tree104b9667181305a6dce5f73bb4d23518f8ba0b2e /perl.h
parentb1248f16cd8cccfb12ae16cd8e7e93dd53dc52bf (diff)
downloadperl-0f85fab05fafa513bd55a9e1ab280aac5567e27a.tar.gz
perl 3.0 patch #18 patch #16, continued
See patch #16.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h64
1 files changed, 62 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 0828407c67..65738a1265 100644
--- a/perl.h
+++ b/perl.h
@@ -1,4 +1,4 @@
-/* $Header: perl.h,v 3.0.1.6 90/03/12 16:40:43 lwall Locked $
+/* $Header: perl.h,v 3.0.1.7 90/03/27 16:12:52 lwall Locked $
*
* Copyright (c) 1989, Larry Wall
*
@@ -6,6 +6,10 @@
* as specified in the README file that comes with the perl 3.0 kit.
*
* $Log: perl.h,v $
+ * Revision 3.0.1.7 90/03/27 16:12:52 lwall
+ * patch16: MSDOS support
+ * patch16: support for machines that can't cast negative floats to unsigned ints
+ *
* Revision 3.0.1.6 90/03/12 16:40:43 lwall
* patch13: did some ndir straightening up for Xenix
*
@@ -49,6 +53,51 @@
#define VOIDUSED 1
#include "config.h"
+#ifdef MSDOS
+/*
+ * BUGGY_MSC:
+ * This symbol is defined if you are the unfortunate owner of a buggy
+ * Microsoft C compiler and want to use intrinsic functions. Versions
+ * up to 5.1 are known conform to this definition. This is not needed
+ * under Unix.
+ */
+#define BUGGY_MSC /**/
+/*
+ * BINARY:
+ * This symbol is defined if you run under an operating system that
+ * distinguishes between binary and text files. If so the function
+ * setmode will be used to set the file into binary mode. Unix
+ * doesn't distinguish.
+ */
+#define BINARY /**/
+
+#else /* !MSDOS */
+
+/*
+ * The following symbols are defined if your operating system supports
+ * functions by that name. All Unixes I know of support them, thus they
+ * are not checked by the configuration script, but are directly defined
+ * here.
+ */
+#define CHOWN
+#define CHROOT
+#define FORK
+#define GETLOGIN
+#define GETPPID
+#define KILL
+#define LINK
+#define PIPE
+#define WAIT
+#define UMASK
+/*
+ * The following symbols are defined if your operating system supports
+ * password and group functions in general. All Unix systems do.
+ */
+#define GROUP
+#define PASSWD
+
+#endif /* !MSDOS */
+
#if defined(HASVOLATILE) || defined(__STDC__)
#define VOLATILE volatile
#else
@@ -244,7 +293,7 @@ typedef struct stab STAB;
#include "array.h"
#include "hash.h"
-#if defined(iAPX286) || defined(M_I286) || defined(I80286)
+#if defined(iAPX286) || defined(M_I286) || defined(I80286) || defined(M_I86)
# define I286
#endif
@@ -351,6 +400,17 @@ EXT STR *Str;
#endif
#endif
+#ifdef CASTNEGFLOAT
+#define U_S(what) ((unsigned short)(what))
+#define U_I(what) ((unsigned int)(what))
+#define U_L(what) ((unsigned long)(what))
+#else
+unsigned long castulong();
+#define U_S(what) ((unsigned int)castulong(what))
+#define U_I(what) ((unsigned int)castulong(what))
+#define U_L(what) (castulong(what))
+#endif
+
CMD *add_label();
CMD *block_head();
CMD *append_line();