aboutsummaryrefslogtreecommitdiff
path: root/unprotbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-29 15:09:09 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-29 15:09:09 -0400
commitabdafc3fdf75b92a7a46eac6e0747f9a536a0447 (patch)
tree0e79aa2bd41343cd07d6720441e1e167f17dabec /unprotbas.c
parent74f632203d187148b3d063b7023051138e872d4c (diff)
downloadbw-atari8-tools-abdafc3fdf75b92a7a46eac6e0747f9a536a0447.tar.gz
unprotbas: improve -s option.
Diffstat (limited to 'unprotbas.c')
-rw-r--r--unprotbas.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/unprotbas.c b/unprotbas.c
index 8c8651f..bf1fb7e 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -652,10 +652,15 @@ void scramble_vars(void) {
if(verbose) {
i -= vnstart;
- if(i)
- fprintf(stderr, "replaced %d byte variable name table with EOLs.\n", i);
- else
+ if(i) {
+ fprintf(stderr, "replaced %d byte variable name table with ", i);
+ if(varname_char == -1)
+ fprintf(stderr, "random characters.\n");
+ else
+ fprintf(stderr, "character $%02x\n", varname_char);
+ } else {
die("can't protect variables because there are no variables.");
+ }
}
}
@@ -670,6 +675,7 @@ void print_help(void) {
fprintf(stderr, "-w: write variable names to varnames.txt\n");
fprintf(stderr, "-r: read variable names from varnames.txt\n");
fprintf(stderr, "-pc/-pv/-p: protect code/variables/both\n");
+ fprintf(stderr, "-s: shrink variable name table to min size, with -p/-pv\n");
fprintf(stderr, "-xNN: hex code NN for variable names, with -p/-pv\n");
fprintf(stderr, "-xr: random variable names, with -p/-pv\n");
fprintf(stderr, "Use - as a filename to read from stdin and/or write to stdout\n");