From: Frank Mori Hess Date: Thu, 6 Mar 2003 19:07:33 +0000 (+0000) Subject: made parsing slightly more forgiving with respect to commas, in case user X-Git-Tag: r0_7_21~239 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a67e3d7afeef6ba36eb4d70ff588df8505921f8;p=comedilib.git made parsing slightly more forgiving with respect to commas, in case user hand-edits calibration file --- diff --git a/lib/calib_yacc.y b/lib/calib_yacc.y index cd4e299..1e1bf5d 100644 --- a/lib/calib_yacc.y +++ b/lib/calib_yacc.y @@ -246,7 +246,7 @@ extern struct calibration_file_contents* parse_calibration_file( FILE *file ) ; calibration_setting: /* empty */ { cal_index++; } - | calibration_setting_element + | calibration_setting_element { cal_index++; } | calibration_setting_element ',' calibration_setting ; @@ -293,7 +293,7 @@ extern struct calibration_file_contents* parse_calibration_file( FILE *file ) ; caldac: /* empty */ { add_caldac( parsed_file, caldac ); } - | caldac_element + | caldac_element { add_caldac( parsed_file, caldac ); } | caldac_element ',' caldac ;