diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2007-06-14 06:40:39 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2007-06-14 06:40:39 +0000 |
commit | a811f65c685c9e8b5d6f6e9408056a05f11cc25d (patch) | |
tree | d6c13c2a401204ef609fc94cec2444878365d04a /emulators/xsystem35/files | |
parent | 3975e1fb8cfff24c6c724d80dd1c53d3100fecc5 (diff) | |
download | ports-a811f65c685c9e8b5d6f6e9408056a05f11cc25d.tar.gz ports-a811f65c685c9e8b5d6f6e9408056a05f11cc25d.zip |
Notes
Diffstat (limited to 'emulators/xsystem35/files')
-rw-r--r-- | emulators/xsystem35/files/patch-src_cmd2F.c | 37 | ||||
-rw-r--r-- | emulators/xsystem35/files/patch-src_cmdf.c | 47 |
2 files changed, 84 insertions, 0 deletions
diff --git a/emulators/xsystem35/files/patch-src_cmd2F.c b/emulators/xsystem35/files/patch-src_cmd2F.c new file mode 100644 index 000000000000..13bbf1481182 --- /dev/null +++ b/emulators/xsystem35/files/patch-src_cmd2F.c @@ -0,0 +1,37 @@ +--- src/cmd2F.c.orig Mon Jul 21 02:30:16 2003 ++++ src/cmd2F.c Thu Jun 14 13:05:15 2007 +@@ -1381,7 +1381,7 @@ + + for (i = 0; i < eNumof; i++) { + *vData = LittleEndian_getW(nact->datatbl_addr, 0); +- ((WORD *)nact->datatbl_addr)++; ++ nact->datatbl_addr += sizeof(WORD); + vData++; + } + +@@ -1397,14 +1397,14 @@ + + for (i = 0; i < eNumof; i++) { + v_strcpy(eStrNum + i -1, (const char *)(nact->datatbl_addr)); +- (char *)(nact->datatbl_addr) += (strlen((const char *)nact->datatbl_addr) + 1); ++ nact->datatbl_addr += (strlen((const char *)nact->datatbl_addr) + 1); + } + } + + void commands2F83() { + int eNumof = sys_getCaliValue(); + +- ((WORD *)nact->datatbl_addr) += eNumof; ++ nact->datatbl_addr += eNumof * sizeof(WORD); + + DEBUG_COMMAND("dataSkipWORD %d:\n", eNumof); + } +@@ -1414,7 +1414,7 @@ + int i; + + for (i = 0; i < eNumof; i++) { +- (char *)(nact->datatbl_addr) += (strlen((const char *)nact->datatbl_addr) + 1); ++ nact->datatbl_addr += (strlen((const char *)nact->datatbl_addr) + 1); + } + + DEBUG_COMMAND("dataSkipString %d:\n", eNumof); diff --git a/emulators/xsystem35/files/patch-src_cmdf.c b/emulators/xsystem35/files/patch-src_cmdf.c new file mode 100644 index 000000000000..88cc4a2e0088 --- /dev/null +++ b/emulators/xsystem35/files/patch-src_cmdf.c @@ -0,0 +1,47 @@ +--- src/cmdf.c.orig Sat Dec 21 18:28:35 2002 ++++ src/cmdf.c Thu Jun 14 13:03:47 2007 +@@ -82,22 +82,22 @@ + DEBUG_COMMAND("F1 %d,%d:\n", str_number, skip); + + for (i = 0; i < skip; i++) { +- (char *)(nact->datatbl_addr) += (strlen((const char *)nact->datatbl_addr) + 1); ++ nact->datatbl_addr += (strlen((const char *)nact->datatbl_addr) + 1); + } + + v_strcpy(str_number - 1 , (const char *)(nact->datatbl_addr)); +- (char *)(nact->datatbl_addr) += (strlen((const char *)nact->datatbl_addr) + 1); ++ nact->datatbl_addr += (strlen((const char *)nact->datatbl_addr) + 1); + } + + static void commandF2() { + int *read_var = sys_getCaliVariable(); + int skip = sys_getCaliValue(); + +- ((WORD *)nact->datatbl_addr) += skip; ++ nact->datatbl_addr += skip * sizeof(WORD); + + *read_var = LittleEndian_getW(nact->datatbl_addr, 0); + +- ((WORD *)nact->datatbl_addr)++; ++ nact->datatbl_addr += sizeof(WORD); + + DEBUG_COMMAND("F2 %d,%d:\n", *read_var, skip); + } +@@ -118,7 +118,7 @@ + + for (i = 0; i < count; i++) { + *read_var = LittleEndian_getW(nact->datatbl_addr, 0); +- ((WORD *)nact->datatbl_addr)++; ++ nact->datatbl_addr += sizeof(WORD); + read_var++; + } + +@@ -155,7 +155,7 @@ + for (i = 0; i < count; i++) { + for (j = 0; j < data_width; j++) { + *(F6Index[j] + i) = LittleEndian_getW(nact->datatbl_addr, 0); +- ((WORD *)nact->datatbl_addr)++; ++ nact->datatbl_addr += sizeof(WORD); + } + } + |