summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2023-09-13 17:10:53 -0400
committerXANTRONIX Development2023-09-13 17:10:53 -0400
commitb98f0041a61740cb1572e30a294c19ca917a76ac (patch)
treedd73a726b1c7586bb628e6987fe4fc6ffdd7749c /src
parent196ce806e2ab8abdccabfed5c809c5a35abdcf3b (diff)
downloadzxdump-b98f0041a61740cb1572e30a294c19ca917a76ac.tar.gz
zxdump-b98f0041a61740cb1572e30a294c19ca917a76ac.tar.bz2
zxdump-b98f0041a61740cb1572e30a294c19ca917a76ac.zip
Cats :3
Diffstat (limited to 'src')
-rw-r--r--src/basic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/basic.c b/src/basic.c
index 043c66a..e6eb4bb 100644
--- a/src/basic.c
+++ b/src/basic.c
@@ -25,27 +25,27 @@ static inline enum zx_basic_token_type zx_basic_token_type_get(uint8_t b) {
if ((codepoint >= 'A' && codepoint <= 'Z')
|| (codepoint >= '0' && codepoint <= '9')) {
- return ZX_BASIC_TOKEN_ALNUM;
+ return ZX81_BASIC_TOKEN_ALNUM;
} else if (codepoint == '"') {
- return ZX_BASIC_TOKEN_QUOTE;
+ return ZX81_BASIC_TOKEN_QUOTE;
} else {
- return ZX_BASIC_TOKEN_SYMBOL;
+ return ZX81_BASIC_TOKEN_SYMBOL;
}
} else if (ZX81_CHAR_INVERSE(b)) {
return zx_basic_token_type_get(b - ZX81_CHAR_INVERSE_START);
} else if (ZX81_CHAR_TOKEN_LOW(b)) {
- return ZX_BASIC_TOKEN_WORD;
+ return ZX81_BASIC_TOKEN_WORD;
} else if (ZX81_CHAR_TOKEN_HIGH(b)) {
char *token = zx81_basic_tokens[b-ZX81_CHAR_TOKEN_HIGH_START];
if (token[0] >= 'A' && token[0] <= 'Z') {
- return ZX_BASIC_TOKEN_WORD;
+ return ZX81_BASIC_TOKEN_WORD;
} else {
- return ZX_BASIC_TOKEN_SYMBOL;
+ return ZX81_BASIC_TOKEN_SYMBOL;
}
}
- return ZX_BASIC_TOKEN_UNKNOWN;
+ return ZX81_BASIC_TOKEN_UNKNOWN;
}
static inline int basic_print(uint8_t c, int tty, FILE *stream) {
@@ -77,7 +77,7 @@ ssize_t zx81_basic_dump(int fd, FILE *stream) {
goto error_malloc;
}
- if (lseek(fd, ZX_BASIC_STATE_SIZE, SEEK_CUR) < 0) {
+ if (lseek(fd, ZX81_BASIC_STATE_SIZE, SEEK_CUR) < 0) {
goto error_io;
}
@@ -94,7 +94,7 @@ ssize_t zx81_basic_dump(int fd, FILE *stream) {
len = le16toh(line.len);
- if (be16toh(line.num) == len && len == ZX_BASIC_LINE_LAST) {
+ if (be16toh(line.num) == len && len == ZX81_BASIC_LINE_LAST) {
break;
}