aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/awkgram.y b/awkgram.y
index a39452f8..6f66fb53 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -4405,7 +4405,7 @@ retry:
/* regular code */
break;
default:
- cant_happen();
+ cant_happen("bad value %d for want_param_names", (int) want_param_names);
break;
}
}
@@ -6364,7 +6364,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;
@@ -6376,7 +6376,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;
@@ -6388,9 +6388,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;