summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1993-06-12 13:44:08 +0000
committerVern Paxson <vern@ee.lbl.gov>1993-06-12 13:44:08 +0000
commit98cfc6eb3f2626017b36fa63178238764118bd38 (patch)
treea49aa69154ed6db80865b96cbc9e696cb3013d3b /flexdef.h
parent79b7a59a56376d4a90f13a759971380665e6a419 (diff)
Changed to use yy_flex_alloc() and friends
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/flexdef.h b/flexdef.h
index d227363..23fe538 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -82,23 +82,9 @@ char *sprintf(); /* keep lint happy */
#define SHORT_FILE_NAMES
#endif
-#ifdef __STDC__
-
-#ifdef __GNUC__
-#include <stddef.h>
-void *malloc( size_t );
-void free( void* );
-#else
-#include <stdlib.h>
-#endif
-
-#else /* ! __STDC__ */
-char *malloc(), *realloc();
-#endif
-
/* Maximum line length we'll have to deal with. */
-#define MAXLINE BUFSIZ
+#define MAXLINE 2048
/* Maximum size of file name. */
#define FILENAMESIZE 1024
@@ -635,7 +621,12 @@ extern int sectnum, nummt, hshcol, dfaeql, numeps, eps2, num_reallocs;
extern int tmpuses, totnst, peakpairs, numuniq, numdup, hshsave;
extern int num_backtracking, bol_needed;
-void *allocate_array(), *reallocate_array();
+void *allocate_array PROTO((int, int));
+void *reallocate_array PROTO((void*, int, int));
+
+void *yy_flex_alloc PROTO((int));
+void *yy_flex_realloc PROTO((void*, int));
+void yy_flex_free PROTO((void*));
#define allocate_integer_array(size) \
(int *) allocate_array( size, sizeof( int ) )