summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorvern <vern>1993-06-12 13:44:08 +0000
committervern <vern>1993-06-12 13:44:08 +0000
commitc5ba4144b165ad1dc4f4489103c0609eb681b334 (patch)
treeca8be986e41cbe56e9783fabe98764258874041e /flexdef.h
parent80e492d918bfeb6923bdae2c7f1ce237cdebbd0d (diff)
downloadflex-c5ba4144b165ad1dc4f4489103c0609eb681b334.tar.gz
Changed to use yy_flex_alloc() and friends
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/flexdef.h b/flexdef.h
index 79eebe9..6aa9efb 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -26,7 +26,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* @(#) $Header: /cvsroot/flex/flex/flexdef.h,v 2.12 1993/04/14 22:41:50 vern Exp $ (LBL) */
+/* @(#) $Header: /cvsroot/flex/flex/flexdef.h,v 2.13 1993/06/12 13:44:08 vern Exp $ (LBL) */
#ifndef FILE
#include <stdio.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 ) )