got rid of unneccessary yyrestart()
This commit is contained in:
parent
b950e1c63c
commit
fac040f462
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue