diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2022-02-27 20:39:54 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2022-02-27 20:39:54 +0200 |
commit | fc1410099d6ccbb72adb54ecffd0711348706ca4 (patch) | |
tree | d04175556415fff6bcf66f48fc05c4da5f2d4908 /awkgram.c | |
parent | 7acb038bd54f81fb95dac70954e5c1b8ec07a086 (diff) | |
download | egawk-fc1410099d6ccbb72adb54ecffd0711348706ca4.tar.gz egawk-fc1410099d6ccbb72adb54ecffd0711348706ca4.tar.bz2 egawk-fc1410099d6ccbb72adb54ecffd0711348706ca4.zip |
Have cant_happen() give more information.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6912,7 +6912,7 @@ retry: /* regular code */ break; default: - cant_happen(); + cant_happen("bad value %d for want_param_names", (int) want_param_names); break; } } @@ -8871,7 +8871,7 @@ list_append(INSTRUCTION *l, INSTRUCTION *x) { #ifdef GAWKDEBUG if (l->opcode != Op_list) - cant_happen(); + cant_happen("unexpected value %s for opcode", opcode2str(l->opcode)); #endif l->lasti->nexti = x; l->lasti = x; @@ -8883,7 +8883,7 @@ list_prepend(INSTRUCTION *l, INSTRUCTION *x) { #ifdef GAWKDEBUG if (l->opcode != Op_list) - cant_happen(); + cant_happen("unexpected value %s for opcode", opcode2str(l->opcode)); #endif x->nexti = l->nexti; l->nexti = x; @@ -8895,9 +8895,9 @@ list_merge(INSTRUCTION *l1, INSTRUCTION *l2) { #ifdef GAWKDEBUG if (l1->opcode != Op_list) - cant_happen(); + cant_happen("unexpected value %s for opcode", opcode2str(l1->opcode)); if (l2->opcode != Op_list) - cant_happen(); + cant_happen("unexpected value %s for opcode", opcode2str(l2->opcode)); #endif l1->lasti->nexti = l2->nexti; l1->lasti = l2->lasti; |