From 4c3a520a15d0cb2b0db1736efe03145bc296de4c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 7 Jul 2024 03:33:16 -0400 Subject: whichbas: include line number in invalid token err msgs. --- whichbas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'whichbas.c') diff --git a/whichbas.c b/whichbas.c index 8f0e258..fc39609 100644 --- a/whichbas.c +++ b/whichbas.c @@ -104,7 +104,7 @@ CALLBACK(handle_cmd) { if(tok >= 0x59) remove_type(BT_BXL); if(tok >= 0x65) { - fprintf(stderr, "handle_cmd: invalid command %02x\n", tok); + fprintf(stderr, "handle_cmd: invalid command %02x at line %d\n", tok, lineno); bas_type = BT_INVALID; print_result(); } @@ -247,7 +247,7 @@ CALLBACK(handle_op) { } if(tok >= 0x6E) { - fprintf(stderr, "handle_op: invalid operator %02x\n", tok); + fprintf(stderr, "handle_op: invalid operator %02x at line %d\n", tok, lineno); bas_type = BT_INVALID; print_result(); } -- cgit v1.2.3