aboutsummaryrefslogtreecommitdiffstats
path: root/pc
diff options
context:
space:
mode:
Diffstat (limited to 'pc')
-rw-r--r--pc/config.h65
-rw-r--r--pc/make.bat48
2 files changed, 47 insertions, 66 deletions
diff --git a/pc/config.h b/pc/config.h
index 4718a9cf..9311ee61 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -5,14 +5,14 @@
*/
/*
- * Copyright (C) 1991, the Free Software Foundation, Inc.
+ * Copyright (C) 1991, 1992 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Progamming Language.
*
* GAWK is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 1, or (at your option)
+ * the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* GAWK is distributed in the hope that it will be useful,
@@ -22,7 +22,7 @@
*
* You should have received a copy of the GNU General Public License
* along with GAWK; see the file COPYING. If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
@@ -73,7 +73,7 @@
*
* If your system has no typedef for size_t, define this to get a default
*/
-#define SIZE_T_MISSING 1
+/* #define SIZE_T_MISSING 1 */
/*
* CHAR_UNSIGNED
@@ -97,14 +97,6 @@
/***********************************************/
/*
- * GETOPT_MISSING
- *
- * Define this if your library does not have the getopt(3) library
- * routine for parsing command line arguments.
- */
-#define GETOPT_MISSING 1
-
-/*
* MEMCMP_MISSING
* MEMCPY_MISSING
* MEMSET_MISSING
@@ -158,14 +150,6 @@
/* #define STRTOD_MISSING 1 */
/*
- * STRTOL_MISSING
- *
- * Your system does not have the strtol() routine for converting
- * strings to long integers.
- */
-#define STRTOL_MISSING 1
-
-/*
* STRFTIME_MISSING
*
* Your system lacks the ANSI C strftime() routine for formatting
@@ -198,7 +182,7 @@
* If your system does have ANSI compliant header files that
* provide prototypes for library routines, then define this.
*/
-/* #define STDC_HEADERS 1 */
+#define STDC_HEADERS 1
/*
* NO_TOKEN_PASTING
@@ -228,29 +212,12 @@
* VPRINTF_MISSING
*
* Define this if your system lacks vprintf() and the other routines
- * that go with it.
+ * that go with it. This will trigger an attempt to use _doprnt().
+ * If you don't have that, this attempt will fail and you are on your own.
*/
/* #define VPRINTF_MISSING 1 */
/*
- * BSDSTDIO
- *
- * Define this if your standard i/o library is internally compatible
- * with the one shipped with Berkeley Unix systems (4.n, n <= 3-reno).
- * If you've defined VPRINTF_MISSING, you probably will need this too.
- */
-/* #define BSDSTDIO 1 */
-
-/*
- * DOPRNT_MISSING
- *
- * Define this if your standard i/o library does not have the _doprnt()
- * routine. This is used in an attempt to simulate the vfprintf()
- * routine.
- */
-/* #define DOPRNT_MISSING 1 */
-
-/*
* Casts from size_t to int and back. These will become unnecessary
* at some point in the future, but for now are required where the
* two types are a different representation.
@@ -267,6 +234,14 @@
*/
/* #define SYSTEM_MISSING 1 */
+/*
+ * FMOD_MISSING
+ *
+ * Define this if your system lacks the fmod() function and modf() will
+ * be used instead.
+ */
+/* #define FMOD_MISSING 1 */
+
/*******************************/
/* Gawk configuration options. */
@@ -284,4 +259,14 @@
/* #define DEFPATH ".:/usr/lib/awk:/usr/local/lib/awk" */
/* #define ENVSEP ':' */
+/*
+ * alloca already has a prototype defined - don't redefine it
+ */
+/* #define ALLOCA_PROTO 1 */
+
+/*
+ * srandom already has a prototype defined - don't redefine it
+ */
+/* #define SRANDOM_PROTO 1 */
+
/* anything that follows is for system-specific short-term kludges */
diff --git a/pc/make.bat b/pc/make.bat
index 99d76512..a416cadc 100644
--- a/pc/make.bat
+++ b/pc/make.bat
@@ -3,6 +3,7 @@ REM
REM *** This has only been using MSC 5.1 ***
REM
REM Written by Arnold Robbins, May 1991
+REM Modified by Scott Deifik, July, 1992
REM Based on earlier makefile for dos
REM
REM Copyright (C) 1986, 1988, 1989, 1991 the Free Software Foundation, Inc.
@@ -24,32 +25,27 @@ REM You should have received a copy of the GNU General Public License
REM along with GAWK; see the file COPYING. If not, write to
REM the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
REM
-REM debug flags: DEBUG=#-DDEBUG #-DFUNC_TRACE -DMEMDEBUG
-REM DEBUGGER= #-Zi
-REM
-cl -c -AL -Oalt array.c
-cl -c -AL -Oalt awktab.c
-cl -c -AL -Oalt builtin.c
-cl -c -AL -Oalt dfa.c
-cl -c -AL -Oalt eval.c
-cl -c -AL -Oalt field.c
-cl -c -AL -Oalt io.c
-cl -c -AL -Oalt iop.c
-cl -c -AL -Oalt main.c
-cl -c -AL -Oalt missing.c
-cl -c -AL -Oalt msg.c
-cl -c -AL -Oalt node.c
-cl -c -AL -Oalt popen.c
-cl -c -AL -Oalt re.c
-cl -c -AL -Oalt version.c
-REM
-REM this kludge necessary because MSC 5.1 compiler bombs with -Oail (where
-REM -Ox == "-Oailt -Gs")
-REM
+REM compile debug flags: -DDEBUG -DFUNC_TRACE -DMEMDEBUG -Zi -Od
+REM
+REM
+cl -c -AL array.c
+cl -c -AL awktab.c
+cl -c -AL builtin.c
+cl -c -AL dfa.c
+cl -c -AL eval.c
+cl -c -AL field.c
+cl -c -AL io.c
+cl -c -AL iop.c
+cl -c -AL main.c
+cl -c -AL missing.c
+cl -c -AL msg.c
+cl -c -AL node.c
+cl -c -AL popen.c
+cl -c -AL re.c
REM You can ignore the warnings you will get
-cl -c -AL -Ot regex.c
+cl -c -AL regex.c
+cl -c -AL version.c
REM
-REM I'm not sure what this is for. It was commented out
-REM LINKFLAGS= /CO /NOE /NOI /st:0x1800
+REM link debug flags: /CO /NOE /NOI /st:30000
REM
-link @names.lnk,gawk.exe /E /FAR /PAC /NOE /NOI /st:0x1800;
+link @names.lnk,gawk.exe /NOE /NOI /st:30000;