From: Frank Mori Hess Date: Wed, 5 Mar 2003 00:46:36 +0000 (+0000) Subject: got rid of unneccessary yyrestart() X-Git-Tag: r0_7_21~245 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fac040f46245967d2699b4f4b3c02995737f9e4b;p=comedilib.git got rid of unneccessary yyrestart() --- 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 );