mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
206 lines
4.8 KiB
Diff
206 lines
4.8 KiB
Diff
Fix implicit declaration of functions.
|
|
--- rx/configure.orig 1996-09-18 12:33:36.000000000 -0500
|
|
+++ rx/configure 2021-03-04 12:39:41.000000000 -0600
|
|
@@ -969,6 +969,7 @@
|
|
#line 970 "configure"
|
|
#include "confdefs.h"
|
|
#include <ctype.h>
|
|
+#include <stdlib.h>
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
--- rx/rx.c.orig 1997-01-15 14:08:03.000000000 -0600
|
|
+++ rx/rx.c 2021-03-04 12:52:22.000000000 -0600
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxhash.h"
|
|
--- rx/rxanal.c.orig 1996-12-02 23:33:15.000000000 -0600
|
|
+++ rx/rxanal.c 2021-03-04 12:51:36.000000000 -0600
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
#include "rxall.h"
|
|
#include "rxanal.h"
|
|
#include "rxbitset.h"
|
|
--- rx/rxbasic.c.orig 1996-11-08 11:04:12.000000000 -0600
|
|
+++ rx/rxbasic.c 2021-03-04 12:49:50.000000000 -0600
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
#include "rxall.h"
|
|
#include "rxbasic.h"
|
|
#include "rxstr.h"
|
|
--- rx/rxbitset.c.orig 1996-09-18 12:12:27.000000000 -0500
|
|
+++ rx/rxbitset.c 2021-03-04 12:51:51.000000000 -0600
|
|
@@ -22,6 +22,7 @@
|
|
*/
|
|
|
|
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxbitset.h"
|
|
|
|
--- rx/rxcset.c.orig 1996-09-18 12:12:27.000000000 -0500
|
|
+++ rx/rxcset.c 2021-03-04 12:46:05.000000000 -0600
|
|
@@ -23,6 +23,7 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
#include "rxall.h"
|
|
#include "rxcset.h"
|
|
/* Utilities for manipulating bitset represntations of characters sets. */
|
|
--- rx/rxdbug.c.orig 1996-12-02 23:33:15.000000000 -0600
|
|
+++ rx/rxdbug.c 2021-03-04 12:45:43.000000000 -0600
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
+#include <ctype.h>
|
|
#include <stdio.h>
|
|
#include "rxall.h"
|
|
#include "rxgnucomp.h"
|
|
--- rx/rxgnucomp.c.orig 1997-01-13 12:07:36.000000000 -0600
|
|
+++ rx/rxgnucomp.c 2021-03-04 12:45:08.000000000 -0600
|
|
@@ -17,7 +17,12 @@
|
|
*/
|
|
|
|
|
|
+#include <ctype.h>
|
|
+#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <sys/types.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxgnucomp.h"
|
|
#include "inst-rxposix.h"
|
|
--- rx/rxhash.c.orig 1996-09-18 12:12:27.000000000 -0500
|
|
+++ rx/rxhash.c 2021-03-04 12:49:26.000000000 -0600
|
|
@@ -22,6 +22,8 @@
|
|
*/
|
|
|
|
|
|
+#include <stdlib.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxhash.h"
|
|
|
|
--- rx/rxnfa.c.orig 1996-11-22 05:33:29.000000000 -0600
|
|
+++ rx/rxnfa.c 2021-03-04 12:47:39.000000000 -0600
|
|
@@ -22,6 +22,8 @@
|
|
*/
|
|
|
|
|
|
+#include <stdlib.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxnfa.h"
|
|
|
|
--- rx/rxnode.c.orig 1997-01-15 13:47:48.000000000 -0600
|
|
+++ rx/rxnode.c 2021-03-04 12:48:41.000000000 -0600
|
|
@@ -20,6 +20,9 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxnode.h"
|
|
|
|
--- rx/rxposix.c.orig 1996-12-03 12:29:55.000000000 -0600
|
|
+++ rx/rxposix.c 2021-03-04 12:49:01.000000000 -0600
|
|
@@ -18,6 +18,10 @@
|
|
|
|
|
|
|
|
+#include <ctype.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxposix.h"
|
|
#include "rxgnucomp.h"
|
|
--- rx/rxsimp.c.orig 1996-09-18 12:12:28.000000000 -0500
|
|
+++ rx/rxsimp.c 2021-03-04 12:52:06.000000000 -0600
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
+#include <ctype.h>
|
|
#include "rxall.h"
|
|
#include "rxsimp.h"
|
|
|
|
--- rx/rxspencer.c.orig 1996-12-03 02:34:48.000000000 -0600
|
|
+++ rx/rxspencer.c 2021-03-04 12:53:17.000000000 -0600
|
|
@@ -19,6 +19,8 @@
|
|
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxspencer.h"
|
|
#include "rxsimp.h"
|
|
--- rx/rxstr.c.orig 1996-11-23 00:23:13.000000000 -0600
|
|
+++ rx/rxstr.c 2021-03-04 12:50:50.000000000 -0600
|
|
@@ -18,6 +18,8 @@
|
|
|
|
|
|
|
|
+#include <string.h>
|
|
+#include <strings.h>
|
|
#include "rxall.h"
|
|
#include "rxstr.h"
|
|
|
|
--- rx/rxsuper.c.orig 1997-01-15 13:25:06.000000000 -0600
|
|
+++ rx/rxsuper.c 2021-03-04 12:53:33.000000000 -0600
|
|
@@ -20,6 +20,8 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
+#include "rx.h"
|
|
#include "rxall.h"
|
|
#include "rxsuper.h"
|
|
|
|
--- rx/rxsuper.h.orig 1996-11-08 11:03:50.000000000 -0600
|
|
+++ rx/rxsuper.h 2021-03-04 13:00:26.000000000 -0600
|
|
@@ -421,6 +421,8 @@
|
|
|
|
|
|
#ifdef __STDC__
|
|
+extern void rx_refresh_this_superstate (struct rx_cache * cache,
|
|
+ struct rx_superstate * superstate);
|
|
extern char * rx_cache_malloc (struct rx_cache * cache, int size);
|
|
extern void rx_cache_free (struct rx_cache * cache, int size, char * mem);
|
|
extern void rx_release_superset (struct rx *rx,
|
|
@@ -433,6 +435,7 @@
|
|
extern struct rx_inx * rx_handle_cache_miss (struct rx *rx, struct rx_superstate *super, unsigned char chr, void *data) ;
|
|
|
|
#else /* STDC */
|
|
+extern void rx_refresh_this_superstate ();
|
|
extern char * rx_cache_malloc ();
|
|
extern void rx_cache_free ();
|
|
extern void rx_release_superset ();
|
|
--- rx/rxunfa.c.orig 1996-11-24 05:54:27.000000000 -0600
|
|
+++ rx/rxunfa.c 2021-03-04 12:52:38.000000000 -0600
|
|
@@ -20,6 +20,7 @@
|
|
|
|
|
|
|
|
+#include <stdlib.h>
|
|
#include "rxall.h"
|
|
#include "rx.h"
|
|
#include "rxunfa.h"
|