summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1993-12-17 10:04:28 +0000
committerVern Paxson <vern@ee.lbl.gov>1993-12-17 10:04:28 +0000
commit931a0c05d8f8067dc3d9bf5148a93a7663bf38ac (patch)
tree12ecc8ea6b2c41fc03ac2e7ddab1b305716182ff /flexdef.h
parentc7288ae69923d797df796d0568a11732977101b7 (diff)
Use autoconf for string/strings.h
yy_flex_XXX -> flex_XXX
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/flexdef.h b/flexdef.h
index b0f5fe6..be09463 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -31,6 +31,12 @@
#include <stdio.h>
#include <ctype.h>
+#if HAVE_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+
/* Always be prepared to generate an 8-bit scanner. */
#define CSIZE 256
#define Char unsigned char
@@ -606,16 +612,9 @@ extern int num_backing_up, bol_needed;
void *allocate_array PROTO((int, int));
void *reallocate_array PROTO((void*, int, int));
-void *yy_flex_alloc PROTO((unsigned int));
-void *yy_flex_realloc PROTO((void*, unsigned int));
-void yy_flex_free PROTO((void*));
-int yy_flex_strcmp PROTO(( const char *s1, const char *s2 ));
-void yy_flex_strcpy PROTO(( char *s1, const char *s2 ));
-int yy_flex_strlen PROTO(( const char *s ));
-
-#define strcmp yy_flex_strcmp
-#define strcpy yy_flex_strcpy
-#define strlen yy_flex_strlen
+void *flex_alloc PROTO((unsigned int));
+void *flex_realloc PROTO((void*, unsigned int));
+void flex_free PROTO((void*));
#define allocate_integer_array(size) \
(int *) allocate_array( size, sizeof( int ) )