aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-07 03:33:16 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-07 03:33:16 -0400
commit4c3a520a15d0cb2b0db1736efe03145bc296de4c (patch)
tree6cc24d1dbb8060f385d445b84405379d28f111ed
parent6ce4da07cff6dec5516076f1989b36f9c1958bba (diff)
downloadbw-atari8-tools-4c3a520a15d0cb2b0db1736efe03145bc296de4c.tar.gz
whichbas: include line number in invalid token err msgs.
-rw-r--r--whichbas.c4
1 files changed, 2 insertions, 2 deletions
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();
}