🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1130

Patch for gawk-2.14 on Sequent Symmetry/Dynix

#1130
From: Jason Merrill
Date: Sat, 21 Nov 1992 23:40
79 lines
2544 bytes
These changes were necessary to make gawk compile happily on our Sequent,
because:

1) Dynix doesn't have fmod().
2) The definitions of str{r,}chr should match the prototypes in strftime.c.
3) The prototypes should come before the definitions.

diff -ur tmp/gawk-2.14/config/sequent gawk-2.14/config/sequent
--- tmp/gawk-2.14/config/sequent	Tue May 21 07:03:57 1991
+++ gawk-2.14/config/sequent	Sat Nov 21 15:09:35 1992
@@ -14,3 +14,4 @@
 VPRINTF_MISSING	1 
 BSDSTDIO		1 
 TZSET_MISSING	1
+FMOD_MISSING	1
Only in gawk-2.14: gawk
Only in gawk-2.14: jarthur
diff -ur tmp/gawk-2.14/missing/strchr.c gawk-2.14/missing/strchr.c
--- tmp/gawk-2.14/missing/strchr.c	Sun Nov 18 06:52:09 1990
+++ gawk-2.14/missing/strchr.c	Fri Nov 20 17:27:36 1992
@@ -6,11 +6,11 @@
 
 char *
 strchr (str, c)
-register char *str, c;
+register const char *str, c;
 {
 	for (; *str; str++)
 		if (*str == c)
-			return str;
+			return (char *) str;
 
 	return NULL;
 }
@@ -23,13 +23,13 @@
 
 char *
 strrchr (str, c)
-register char *str, c;
+register const char *str, c;
 {
-	register char *save = NULL;
+	register const char *save = NULL;
 
 	for (; *str; str++)
 		if (*str == c)
 			save = str;
 
-	return save;
+	return (char *) save;
 }
diff -ur tmp/gawk-2.14/missing.c gawk-2.14/missing.c
--- tmp/gawk-2.14/missing.c	Tue Sep 22 17:49:49 1992
+++ gawk-2.14/missing.c	Fri Nov 20 16:50:54 1992
@@ -64,10 +64,6 @@
 #include "missing/strcase.c"
 #endif	/* STRCASE_MISSING */
 
-#ifdef STRCHR_MISSING
-#include "missing/strchr.c"
-#endif	/* STRCHR_MISSING */
-
 #ifdef STRERROR_MISSING
 #include "missing/strerror.c"
 #endif	/* STRERROR_MISSING */
@@ -75,6 +71,10 @@
 #ifdef STRFTIME_MISSING
 #include "missing/strftime.c"
 #endif	/* STRFTIME_MISSING */
+
+#ifdef STRCHR_MISSING
+#include "missing/strchr.c"
+#endif	/* STRCHR_MISSING */
 
 #ifdef STRTOD_MISSING
 #include "missing/strtod.c"
--
Jason Merrill					jason@jarthur.claremont.edu
This is a self-referential .sig which is not particularly interesting.
Technical Details
Message-ID: <1992Nov21.234028.23241@muddcs.claremont.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
From: jason@jarthur.claremont.edu (Jason Merrill)
Subject: Patch for gawk-2.14 on Sequent Symmetry/Dynix
Message-ID: <1992Nov21.234028.23241@muddcs.claremont.edu>
Sender: gnulists@ai.mit.edu
Organization: Harvey Mudd College, Claremont, CA 91711
Distribution: gnu
Date: Sat, 21 Nov 1992 23:40:28 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 80