changeset 246:e4d5f689f06d

[project @ 1993-12-04 20:01:37 by jwe]
author jwe
date Sat, 04 Dec 1993 20:01:37 +0000
parents 16a24e76d6e0
children 022be9382d50
files src/lex.l
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lex.l	Fri Dec 03 02:00:15 1993 +0000
+++ b/src/lex.l	Sat Dec 04 20:01:37 1993 +0000
@@ -751,15 +751,37 @@
     }
 }
 
+/*
+ * Include these so that we don't have to link to libfl.a.
+ */
+
 #ifdef yywrap
 #undef yywrap
 #endif
-int
+static int
 yywrap (void)
 {
   return 0;
 }
 
+static void *
+yy_flex_alloc (int size)
+{
+  return (void *) malloc ((unsigned) size);
+}
+
+static void *
+yy_flex_realloc (void *ptr, int size)
+{
+  return (void *) realloc (ptr, (unsigned) size);
+}
+
+static void
+yy_flex_free (void *ptr)
+{
+  free (ptr);
+}
+
 /*
  * Tell us all what the current buffer is.
  */