From e65f9eed531f1618f92cecfef5103e407022a69a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 31 May 2024 20:03:36 -0400 Subject: unprotbas: rename some functions. --- unprotbas.c | 14 +++++++------- 1 file 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)."); -- cgit v1.2.3