From 0fbca815b4131645ec67839838c84643473f8599 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 5 Mar 2000 20:01:19 +0000 Subject: [PATCH] Fix up start of the readmemx lexor. --- vpi/sys_readmem_lex.lex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vpi/sys_readmem_lex.lex b/vpi/sys_readmem_lex.lex index 3f6111585..d3826e1a7 100644 --- a/vpi/sys_readmem_lex.lex +++ b/vpi/sys_readmem_lex.lex @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: sys_readmem_lex.lex,v 1.2 2000/02/23 02:56:56 steve Exp $" +#ident "$Id: sys_readmem_lex.lex,v 1.3 2000/03/05 20:01:19 steve Exp $" #endif # include "sys_readmem_lex.h" # include @@ -169,8 +169,7 @@ static void make_bin_value() void sys_readmem_start_file(FILE*in, int bin_flag, unsigned width, struct t_vpi_vecval *vv) { - yyin = in; - YY_FLUSH_BUFFER; + yyrestart(in); BEGIN(bin_flag? BIN : HEX); word_width = width; vecval = vv;