Mercurial > hg > octave-max
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 +++ b/src/lex.l @@ -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. */