diff options
Diffstat (limited to 'src/config-bison.y')
-rw-r--r-- | src/config-bison.y | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/src/config-bison.y b/src/config-bison.y index db1d6bc..9d22b0b 100644 --- a/src/config-bison.y +++ b/src/config-bison.y @@ -74,7 +74,8 @@ static struct lt_list_head ln_names; %token ERROR %token ERR_DO ERR_DIR ERR_RUN ERR_GO ERR_RETURN ERR_N %token ERR_PROG ERR_ARGS ERR_FILTER ERR_SEQ ERR_START -%token ERR_SIGSEGV ERR_AUTOMATED ERR_REPLAY ERR_KEEP +%token ERR_SIGSEGV ERR_AUTO ERR_REPLAY ERR_KEEP +%token ERR_TYPE %union { @@ -393,40 +394,35 @@ error_run_def ERR_RETURN list_names_comma ABORT("failed to add run"); } | - -error_go: -ERR_GO NAME list_names_comma +error_run_def ERR_START ERR_N '=' VALUE { - if (lt_error_go(scfg, &error_app_go, &error_app, - strdup($2), 0, 1, 0, 0, &ln_names)) - ABORT("failed to add go"); + error_app_run->start.n = $5; } | -ERR_GO NAME ERR_AUTOMATED list_names_comma +error_run_def ERR_TYPE ERR_SEQ { - if (lt_error_go(scfg, &error_app_go, &error_app, - strdup($2), 0, 1, 1, 0, &ln_names)) - ABORT("failed to add go"); + if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_SEQ)) + ABORT("failed to add run"); } | -ERR_GO NAME ERR_REPLAY list_names_comma +error_run_def ERR_TYPE ERR_AUTO { - if (lt_error_go(scfg, &error_app_go, &error_app, - strdup($2), 0, 1, 1, 1, &ln_names)) - ABORT("failed to add go"); + if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_AUTO)) + ABORT("failed to add run"); } | -ERR_GO NAME ERR_N '=' VALUE list_names_comma +error_run_def ERR_TYPE ERR_REPLAY { - if (lt_error_go(scfg, &error_app_go, &error_app, - strdup($2), 0, $5, 0, 0, &ln_names)) - ABORT("failed to add go"); + if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_REPLAY)) + ABORT("failed to add run"); } | -ERR_GO NAME ERR_START '=' VALUE ERR_N '=' VALUE list_names_comma + +error_go: +ERR_GO NAME list_names_comma { if (lt_error_go(scfg, &error_app_go, &error_app, - strdup($2), $5, $8, 0, 0, &ln_names)) + strdup($2), &ln_names)) ABORT("failed to add go"); } |