diff --git a/.github/build/linux/package.sh b/.github/build/linux/package.sh index 672db9a..0c552a1 100755 --- a/.github/build/linux/package.sh +++ b/.github/build/linux/package.sh @@ -3,5 +3,5 @@ mkdir -p package cd package rm * cp ../qvmops ./ -cp ../qagame.qvm.txt ./ +cp ../readme.md ./ cd .. diff --git a/qvmops.h b/qvmops.h index 3d724cb..5818b6e 100644 --- a/qvmops.h +++ b/qvmops.h @@ -19,7 +19,7 @@ Created By: #include #include -#define QVMOPS_VERSION "1.1.2" +#define QVMOPS_VERSION "2.0.0" // length in bytes of each row of the "hex editor" view of the data segment #define DATA_ROW_LEN 32 diff --git a/symbols.c b/symbols.c index 6d5fe9e..7cd44c7 100644 --- a/symbols.c +++ b/symbols.c @@ -189,7 +189,7 @@ static symbolmap_t parse_map_line_ex(char* line) { } lines[linecount].index = linecount; lines[linecount].offset = strtoul(buf[1], NULL, 16); - lines[linecount].symbol = _strdup(buf[2]); + lines[linecount].symbol = strdup(buf[2]); linecount++; ret.segment = -1; return ret; @@ -202,12 +202,12 @@ static symbolmap_t parse_map_line_ex(char* line) { // a if (i < 0) { ret.offset = i; - ret.symbol = _strdup(buf[3]); + ret.symbol = strdup(buf[3]); } // b else { ret.offset = strtoul(buf[1], NULL, 16); - ret.symbol = _strdup(buf[3]); + ret.symbol = strdup(buf[3]); } } } @@ -225,7 +225,7 @@ static symbolmap_t parse_map_line_ex(char* line) { if (ret.segment == 2 && !strncmp(buf[3], "_stack", 6)) ret.segment = 3; ret.offset = strtoul(buf[1], NULL, 16); - ret.symbol = _strdup(buf[3]); + ret.symbol = strdup(buf[3]); } else { ret.segment = -1; @@ -253,6 +253,6 @@ static symbolmap_t parse_map_line(char* line) { ret.segment = atoi(buf[0]); ret.offset = strtoul(buf[1], NULL, 16); - ret.symbol = _strdup(buf[2]); + ret.symbol = strdup(buf[2]); return ret; } diff --git a/util.h b/util.h index 1853c28..52fc1d7 100644 --- a/util.h +++ b/util.h @@ -32,6 +32,8 @@ char* strrstr(const char* str, const char* substr); #define MINIMUM_BUFFER_SIZE 128 typedef intptr_t ssize_t; ssize_t getline(char** lineptr, size_t* n, FILE* stream); + +#define strdup _strdup #endif #endif // __QVMOPS_UTIL_H__