diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-07 03:33:16 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-07 03:33:16 -0400 |
commit | 4c3a520a15d0cb2b0db1736efe03145bc296de4c (patch) | |
tree | 6cc24d1dbb8060f385d445b84405379d28f111ed | |
parent | 6ce4da07cff6dec5516076f1989b36f9c1958bba (diff) | |
download | bw-atari8-tools-4c3a520a15d0cb2b0db1736efe03145bc296de4c.tar.gz |
whichbas: include line number in invalid token err msgs.
-rw-r--r-- | whichbas.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); } |