From 9f4a142c68aec5404d59bd94ba66e8fc37fc0e45 Mon Sep 17 00:00:00 2001 From: MaartenBrock Date: Tue, 1 Aug 2006 19:05:38 +0000 Subject: [PATCH] * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8 * Changelog: not every \ should be a / git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4321 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 41 +++++++++++++++++++----------------- sim/ucsim/hc08.src/hc08.cc | 1 - sim/ucsim/hc08.src/hc08mac.h | 1 - sim/ucsim/z80.src/z80.cc | 1 - 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7179208e..a367e2b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,7 +6,10 @@ 2006-08-01 Maarten Brock + * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp + * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast + * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8 2006-07-31 Borut Razem @@ -215,7 +218,7 @@ 2006-06-25 Borut Razem * device/lib/pic16/libc/stdio/sprintf.c: return the number of - characters printed (not including the trailing '/0' used to end + characters printed (not including the trailing '\0' used to end output to strings). Problem detected in regression test bug-927659.c. NOTE: printf() family functions should return int instead unsigned int! @@ -1015,7 +1018,7 @@ * as/mcs51/lkhead.c (newhead): head is absolute but not overlay * as/hc08/lklibr.c (addfile, fndsym), * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent - index out of range and detect both '/' and '/' + index out of range and detect both '\' and '/' * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment * device/include/stdbool.h: removed SDCC_ds390 from check to pass regression tests (ds390 cannot return bool yet) @@ -1078,8 +1081,8 @@ 2006-04-18 Borut Razem - * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o, - ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc + * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o, + ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc 2006-04-17 Borut Razem @@ -3016,7 +3019,7 @@ 2005-06-20 Slade Rich - * src/pic/pcode.c : Fixed problem when a string constant contains a "/r/n" + * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n" and the output asm file line is printed on two lines. 2005-06-19 Erik Petrich @@ -3061,20 +3064,20 @@ 2005-05-26 Raphael Neider * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string - initializers with /0, bug #1208187 + initializers with \0, bug #1208187 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string - intializers with /0, bug #1208187 + intializers with \0, bug #1208187 2005-05-26 Raphael Neider * src/pic16/glue.c (pic16_printIvalChar): fixed string - initializers with /0, bug #1208187 + initializers with \0, bug #1208187 * src/pic16/main.c (_process_pragma): added sanity checks for stack position and size, emit warnings when appropriate 2005-05-26 Maarten Brock - * device/lib/_strncpy.c: fixed not filling with /0 + * device/lib/_strncpy.c: fixed not filling with \0 2005-05-26 Erik Petrich @@ -3277,7 +3280,7 @@ (findNextInstruction), (findPrevInstruction), (findInstructionUsingLabel), src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized - * src/pic/pcode.c (findLabel): added missing '/n' + * src/pic/pcode.c (findLabel): added missing '\n' * src/src.dsp: added SDCCdwarf2.c to the project 2005-04-09 Borut Razem @@ -3861,7 +3864,7 @@ to memccpy(void *, void *, char, size_t) * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to check whether to omit frame pointer or not, - * (genInline): convert all occurences of "/n" to LF in inline + * (genInline): convert all occurences of "\n" to LF in inline assembler blocks, this helps formatting the inline text, * (pic16_loadFSR0): modified prototype, * (genNearPointerGet, genNearPointerSet): reorganization of code, @@ -5625,8 +5628,8 @@ 2004-08-04 Jesus Calvino-Fraga - * src/mcs51/gen.c (genInline): Add /n for labels, not DOS/WIN dirs - such as c:/mydir. + * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs + such as c:\mydir. 2004-08-03 Maarten Brock @@ -5690,7 +5693,7 @@ _memcmp.c _memmove.c calloc.c realloc.c free.c * support/regression/tests/malloc.c: added tests for new functionality * support/regression/tests/zeropad.c: added tests for truncated initializers - and initialized char arrays starting with '/x0' + and initialized char arrays starting with '\x0' * src/mcs51/peeph.def: fixed regression, added peephole 177.f 2004-07-26 Bernhard Held @@ -5868,7 +5871,7 @@ a member of a specific memory bank, * (pic16_printIvalCharPtr): added code to add string literals either to code or the idata sections, - * src/pic16/main.c (_process_pragma): added /n to WHITE constant, + * src/pic16/main.c (_process_pragma): added \n to WHITE constant, also accept the 'udata' pragma, * src/pic16/main.h: new structure types sectName and sectSym * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL @@ -9517,7 +9520,7 @@ 2003-06-18 Bernhard Held - * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with /"cmd/" arg + * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg 2003-06-15 Borut Razem @@ -9573,7 +9576,7 @@ * doc/sdccman.lyx: updated to Lyx 1.3 * doc/cdbfileformat.lyx: updated to Lyx 1.3 * doc/test_suite_spec.lyx: updated to Lyx 1.3 - * doc/Makefile: added fix for the /tabularnewline problem, thanks to Jesus + * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus 2003-06-03 Bernhard Held @@ -10702,7 +10705,7 @@ 2003-01-12 Bernhard Held * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking - * src/SDCCutil.c (join): ugly bug: missing '/0' + * src/SDCCutil.c (join): ugly bug: missing '\0' * as/mcs51/lkmem.c (summary): sp on address 7 is safe 2003-01-11 Bernhard Held @@ -10958,7 +10961,7 @@ so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC - solved MSC error in function aopDump() - * sdcc_vc.h: define PREFIX as "//sdcc" + * sdcc_vc.h: define PREFIX as "\\sdcc" 2002-07-18 Bernhard Held * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107 diff --git a/sim/ucsim/hc08.src/hc08.cc b/sim/ucsim/hc08.src/hc08.cc index f333990d..5603fead 100644 --- a/sim/ucsim/hc08.src/hc08.cc +++ b/sim/ucsim/hc08.src/hc08.cc @@ -49,7 +49,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define uint32 t_addr #define uint8 unsigned char -#define int8 char /*******************************************************************/ diff --git a/sim/ucsim/hc08.src/hc08mac.h b/sim/ucsim/hc08.src/hc08mac.h index 9eec83d6..d061cfe9 100644 --- a/sim/ucsim/hc08.src/hc08mac.h +++ b/sim/ucsim/hc08.src/hc08mac.h @@ -28,7 +28,6 @@ #define push1(val) {store1(regs.SP,(val)); regs.SP-=1; } #define pop2(var) {var=get2(regs.SP+1); regs.SP+=2;} #define pop1(var) {var=get1(regs.SP+1); regs.SP+=1;} -#define add_u16_disp(_w, _d) (( (unsigned short)(_w) + (char)(_d) ) & 0xffff) #define FLAG_SET(f) {regs.P |= f;} diff --git a/sim/ucsim/z80.src/z80.cc b/sim/ucsim/z80.src/z80.cc index 9d2a6566..05c7b8dd 100644 --- a/sim/ucsim/z80.src/z80.cc +++ b/sim/ucsim/z80.src/z80.cc @@ -48,7 +48,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define uint32 t_addr #define uint8 unsigned char -#define int8 char /*******************************************************************/ -- 2.30.2