Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Jason Merrill
Sat, 21 Nov 1992 23:40
Patch for gawk-2.14 on Sequent Symmetry/Dynix
Author: Jason Merrill
Date: Sat, 21 Nov 1992 23:40
Date: Sat, 21 Nov 1992 23:40
79 lines
2544 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads