aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-27 20:45:27 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-27 20:45:27 +0200
commit6083e965fac1b272f9ccb491902b24a24ea14122 (patch)
treed4454d50f6d0ebcf398111f811243876e2dc62d2 /awkgram.c
parentd36d6c02e9f3277850815f3bf5aec3b22fa54a21 (diff)
parentfc1410099d6ccbb72adb54ecffd0711348706ca4 (diff)
downloadegawk-6083e965fac1b272f9ccb491902b24a24ea14122.tar.gz
egawk-6083e965fac1b272f9ccb491902b24a24ea14122.tar.bz2
egawk-6083e965fac1b272f9ccb491902b24a24ea14122.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/awkgram.c b/awkgram.c
index 9507bb8a..a4aa170d 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -6913,7 +6913,7 @@ retry:
/* regular code */
break;
default:
- cant_happen();
+ cant_happen("bad value %d for want_param_names", (int) want_param_names);
break;
}
}
@@ -8872,7 +8872,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;
@@ -8884,7 +8884,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;
@@ -8896,9 +8896,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;