From fac040f46245967d2699b4f4b3c02995737f9e4b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 5 Mar 2003 00:46:36 +0000 Subject: [PATCH] got rid of unneccessary yyrestart() --- lib/calib_yacc.y | 3 ++- lib/libinternal.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/calib_yacc.y b/lib/calib_yacc.y index b7f7657..687b68b 100644 --- a/lib/calib_yacc.y +++ b/lib/calib_yacc.y @@ -31,6 +31,7 @@ struct calibration_file_contents file_contents; static struct caldac_setting caldac; static int cal_index; +FILE *calib_yyin; static void free_calibration_setting( struct calibration_setting *setting ) { @@ -179,7 +180,7 @@ extern void cleanup_calibration_parse( void ) extern const struct calibration_file_contents* parse_calibration_file( FILE *file ) { - calib_yyrestart( file ); + calib_yyin = file; init_calib_parse(); if( calib_yyparse() ) return NULL; return &file_contents; diff --git a/lib/libinternal.h b/lib/libinternal.h index 9c1bcb0..ea212ca 100644 --- a/lib/libinternal.h +++ b/lib/libinternal.h @@ -186,7 +186,6 @@ struct calibration_file_contents int calib_yylex( void ); void calib_yyerror( char *s ); int calib_yyparse( void ); -void calib_yyrestart( FILE *calibration_file ); const struct calibration_file_contents* parse_calibration_file( FILE *file ); void cleanup_calibration_parse( void ); -- 2.26.2