aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-06-18 06:58:37 -0400
committerB. Watson <urchlay@slackware.uk>2024-06-18 06:58:37 -0400
commit4915b4381a965bf5d6e815ae1c14fad30bb4c0e2 (patch)
tree48510659b2ffb788fa5fc26eb2aa87d43f77aad8
parent797b170a29f0f0616672c123e94e009b3457caf7 (diff)
downloadbw-atari8-tools-4915b4381a965bf5d6e815ae1c14fad30bb4c0e2.tar.gz
vxrefbas: abort if program is variable-protected.
-rw-r--r--vxrefbas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vxrefbas.c b/vxrefbas.c
index 5ae6694..c08cb7f 100644
--- a/vxrefbas.c
+++ b/vxrefbas.c
@@ -127,6 +127,9 @@ int main(int argc, char **argv) {
readfile();
parse_header();
+ if(!vntable_ok())
+ die("Program is variable-protected; unprotect it first.");
+
on_var_token = handle_var;
on_start_line = new_line;
on_end_line = end_line;