-/* $Header: perl.h,v 3.0.1.1 89/10/26 23:17:08 lwall Locked $
+/* $Header: perl.h,v 3.0.1.3 89/11/17 15:28:57 lwall Locked $
*
* Copyright (c) 1989, Larry Wall
*
* as specified in the README file that comes with the perl 3.0 kit.
*
* $Log: perl.h,v $
+ * Revision 3.0.1.3 89/11/17 15:28:57 lwall
+ * patch5: byteorder now is a hex value
+ * patch5: Configure now looks for <time.h> including <sys/time.h>
+ *
+ * Revision 3.0.1.2 89/11/11 04:39:38 lwall
+ * patch2: Configure may now set -DDEBUGGING
+ * patch2: netinet/in.h needed sys/types.h some places
+ * patch2: more <sys/time.h> and <time.h> wrangling
+ * patch2: yydebug moved to where type doesn't matter
+ *
* Revision 3.0.1.1 89/10/26 23:17:08 lwall
* patch1: vfork now conditionally defined based on VFORK
* patch1: DEC risc machines have a buggy memcmp
*
*/
-#ifndef lint
-#define DEBUGGING
-#endif
-
#define VOIDUSED 1
#include "config.h"
# define vfork fork
#endif
-#if defined(MEMCMP) && defined(mips) && BYTEORDER == 01234
+#if defined(MEMCMP) && defined(mips) && BYTEORDER == 0x1234
#undef MEMCMP
#endif
#include <setjmp.h>
#include <sys/param.h> /* if this needs types.h we're still wrong */
-#ifdef I_NETINET_IN
-#include <netinet/in.h>
-#endif
-
#ifndef _TYPES_ /* If types.h defines this it's easy. */
#ifndef major /* Does everyone's types.h define this? */
#include <sys/types.h>
#endif
#endif
+#ifdef I_NETINET_IN
+#include <netinet/in.h>
+#endif
+
#include <sys/stat.h>
-#ifdef TMINSYS
-#include <sys/time.h>
-#else
-#ifdef I_SYSTIME
+#if defined(TMINSYS) || defined(I_SYSTIME)
#include <sys/time.h>
+#ifdef I_TIMETOO
+#include <time.h>
+#endif
#else
#include <time.h>
+#ifdef I_SYSTIMETOO
+#include <time.h>
#endif
#endif
#ifdef NDBM
#include <ndbm.h>
#define SOME_DBM
+#ifdef ODBM
+#undef ODBM
+#endif
#else
#ifdef ODBM
#ifdef NULL
#define DIRENT dirent
#else
#ifdef I_SYSDIR
+#ifdef hp9000s500
+#include <ndir.h> /* may be wrong in the future */
+#else
#include <sys/dir.h>
+#endif
#define DIRENT direct
#endif
#endif
#define STR_GROW(str,len) if ((str)->str_len < (len)) str_grow(str,len)
#ifndef BYTEORDER
-#define BYTEORDER 01234
+#define BYTEORDER 0x1234
#endif
+#if defined(htonl) && !defined(HTONL)
+#define HTONL
+#endif
+#if defined(htons) && !defined(HTONS)
+#define HTONS
+#endif
+#if defined(ntohl) && !defined(NTOHL)
+#define NTOHL
+#endif
+#if defined(ntohs) && !defined(NTOHS)
+#define NTOHS
+#endif
#ifndef HTONL
-#if BYTEORDER != 04321
+#if (BYTEORDER != 0x4321) && (BYTEORDER != 0x87654321)
#define HTONS
#define HTONL
#define NTOHS
#define ntohl my_ntohl
#endif
#else
-#if BYTEORDER == 04321
+#if (BYTEORDER == 0x4321) || (BYTEORDER == 0x87654321)
#undef HTONS
#undef HTONL
#undef NTOHS
EXT bool sawi INIT(FALSE); /* study must assume case insensitive */
EXT bool sawvec INIT(FALSE);
-EXT int csh INIT(0); /* 1 if /bin/csh is there, -1 if not */
+#ifdef CSH
+char *cshname INIT(CSH);
+int cshlen INIT(0);
+#endif /* CSH */
#ifdef TAINT
EXT bool tainted INIT(FALSE); /* using variables controlled by $< */
EXT char *debname;
EXT char *debdelim;
#define YYDEBUG 1
-extern int yydebug;
#endif
EXT int perldb INIT(0);