diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-01 23:03:43 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-01 23:03:43 +0200 |
commit | dd5323a5c859ed8d6ecbc2e6828611c4ed8aa056 (patch) | |
tree | d093c105538a0a3828aaaf5e9f54fea953dc0bb4 /awk.h | |
parent | 612bce745d80e0ab612dd771d848c2919a753ef3 (diff) | |
download | egawk-dd5323a5c859ed8d6ecbc2e6828611c4ed8aa056.tar.gz egawk-dd5323a5c859ed8d6ecbc2e6828611c4ed8aa056.tar.bz2 egawk-dd5323a5c859ed8d6ecbc2e6828611c4ed8aa056.zip |
Fix switch debugging.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -403,7 +403,6 @@ typedef struct exp_node { #define numbr sub.val.fltnum /* Node_frame: */ -#define loop_count sub.nodep.l.ll #define stack sub.nodep.r.av #define func_node sub.nodep.x.extra #define reti sub.nodep.reflags @@ -538,8 +537,6 @@ typedef enum opcodeval { Op_jmp, Op_jmp_true, Op_jmp_false, - Op_push_loop, /* break (continue) target for loop */ - Op_pop_loop, Op_get_record, Op_newfile, Op_arrayfor_init, @@ -565,7 +562,7 @@ typedef enum opcodeval { Op_token, Op_symbol, Op_list, - Op_case_list, + /* program structures -- for use in the profiler/pretty printer */ Op_K_do, Op_K_for, @@ -638,14 +635,18 @@ typedef struct exp_instruction { #define in_rule x.xl #define source_file d.name -/* Op_K_case, Op_K_default */ -#define target_stmt x.xi - -/* Op_case_list, Op_K_switch */ -#define case_val d.di + /* Op_K_case, Op_K_default */ #define case_stmt x.xi -#define switch_dflt x.xi -#define switch_body d.di /* pretty printing and profiling */ +#define case_exp d.di +#define stmt_start case_exp +#define stmt_end case_stmt +#define match_exp x.xl + +#define target_stmt x.xi + +/* Op_K_switch */ +#define switch_end x.xi +#define switch_start d.di /* Op_K_getline, Op_K_getline_redir */ #define into_var x.xl |