diff options
author | B. Watson <urchlay@slackware.uk> | 2024-05-31 20:03:36 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-05-31 20:03:36 -0400 |
commit | e65f9eed531f1618f92cecfef5103e407022a69a (patch) | |
tree | d63bb73cbd27f1f2a110ddaab361acd0ceb87426 | |
parent | b7661fd2bb461e68493014c1406ace0281d899d0 (diff) | |
download | bw-atari8-tools-e65f9eed531f1618f92cecfef5103e407022a69a.tar.gz |
unprotbas: rename some functions.
-rw-r--r-- | unprotbas.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unprotbas.c b/unprotbas.c index 2290f47..d7ca847 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -135,7 +135,7 @@ void dump_header_vars(void) { fprintf(stderr, "vnstart $%04x, vvstart $%04x, codestart $%04x, code_end $%04x\n", vnstart, vvstart, codestart, code_end); } -void read_header(void) { +void parse_header(void) { lomem = getword(0); vntp = getword(2); vntd = getword(4); @@ -155,7 +155,7 @@ void read_header(void) { if(verbose) dump_header_vars(); } -void set_header_vars(void) { +void update_header(void) { setword(0, lomem); setword(2, vntp); setword(4, vntd); @@ -301,8 +301,8 @@ void breakcode(void) { /* update pointers that would be affected by the code move */ stmcur += offset; starp += offset; - set_header_vars(); - read_header(); + update_header(); + parse_header(); filelen += offset; } @@ -324,8 +324,8 @@ void move_code(int offset) { stmtab += offset; stmcur += offset; starp += offset; - set_header_vars(); - read_header(); + update_header(); + parse_header(); filelen += offset; } @@ -849,7 +849,7 @@ int main(int argc, char **argv) { parse_args(argc, argv); filelen = readfile(); - read_header(); + parse_header(); if(lomem) die("This doesn't look like an Atari BASIC program (no $0000 signature)."); |