cvsuser 04/11/04 01:08:28
Modified: imcc imclexer.c
Log:
fix double free - generated files
Revision Changes Path
1.124 +6 -2 parrot/imcc/imclexer.c
Index: imclexer.c
===================================================================
RCS file: /cvs/public/parrot/imcc/imclexer.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- imclexer.c 4 Nov 2004 08:22:18 -0000 1.123
+++ imclexer.c 4 Nov 2004 09:08:28 -0000 1.124
@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $Header: /cvs/public/parrot/imcc/imclexer.c,v 1.123 2004/11/04 08:22:18 leo Exp $
+ * $Header: /cvs/public/parrot/imcc/imclexer.c,v 1.124 2004/11/04 09:08:28 leo Exp $
*/
#define FLEX_SCANNER
@@ -10,7 +10,6 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
-#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -24,6 +23,7 @@
#ifdef __cplusplus
#include <stdlib.h>
+#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@@ -3312,6 +3312,11 @@
}
+#ifndef YY_ALWAYS_INTERACTIVE
+#ifndef YY_NEVER_INTERACTIVE
+extern int isatty YY_PROTO(( int ));
+#endif
+#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
@@ -4015,7 +4020,6 @@
yyparse((void *) interp);
imc_compile_all_units(interp);
imc_cleanup(interp);
- emit_close(interp);
yy_switch_to_buffer(buffer);
}