diff src/lex.h @ 13973:2c664266e9d0

clean up parser memory on exit * lex.h, lex.ll (clear_all_buffers, cleanup_parser): New functions. * toplev.cc (clean_up_and_exit): Call cleanup_parser here.
author John W. Eaton <jwe@octave.org>
date Fri, 02 Dec 2011 03:51:37 -0500
parents 1bfca2bbea8b
children 72c96de7a403
line wrap: on
line diff
--- a/src/lex.h
+++ b/src/lex.h
@@ -43,6 +43,10 @@
 // Delete a buffer.
 extern OCTINTERP_API void delete_buffer (YY_BUFFER_STATE buf);
 
+extern OCTINTERP_API void clear_all_buffers (void);
+
+extern OCTINTERP_API void cleanup_parser (void);
+
 // Is the given string a keyword?
 extern bool is_keyword (const std::string& s);