From: frief Date: Mon, 16 Oct 2006 15:38:12 +0000 (+0000) Subject: * device/lib/printf_large.c: slightly smaller X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9d1413651102d4e3d9eef8b2369a3c44df89770e;p=fw%2Fsdcc * device/lib/printf_large.c: slightly smaller * doc/sdccman.lyx: do not use spaces within html links git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4413 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index ed443662..6d8df6e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-16 Frieder Ferlemann + + * device/lib/printf_large.c: slightly smaller + * doc/sdccman.lyx: do not use spaces within html links + 2006-10-16 Borut Razem * configure.in, configure, sdccconf_in.h, src/SDCCglobal, diff --git a/device/lib/printf_large.c b/device/lib/printf_large.c index d684258b..4af055aa 100644 --- a/device/lib/printf_large.c +++ b/device/lib/printf_large.c @@ -53,6 +53,9 @@ #ifdef tolower #undef tolower #endif +#ifdef islower +#undef islower +#endif #ifdef isdigit #undef isdigit #endif @@ -60,6 +63,7 @@ //#define toupper(c) ((c)&=~0x20) #define toupper(c) ((c)&=0xDF) #define tolower(c) ((c)|=0x20) +#define islower(c) ((unsigned char)c >= (unsigned char)'a' && (unsigned char)c <= (unsigned char)'z') #define isdigit(c) ((unsigned char)c >= (unsigned char)'0' && (unsigned char)c <= (unsigned char)'9') typedef union @@ -467,11 +471,13 @@ get_conversion_spec: goto get_conversion_spec; } - lower_case = islower(c); - if (lower_case) + if (islower(c)) { c = toupper(c); + lower_case = 1; } + else + lower_case = 0; switch( c ) { @@ -521,9 +527,10 @@ get_conversion_spec: } } - while ( *PTR && (decimals-- > 0)) + while ( (c = *PTR) && (decimals-- > 0)) { - OUTPUT_CHAR( *PTR++, p ); + OUTPUT_CHAR( c, p ); + PTR++; } if ( left_justify && (length < width)) diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index d1eb77e5..ed99a2e6 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -16636,7 +16636,7 @@ status Collapsed \layout Standard The preprocessor SDCPP -\begin_inset LatexCommand \index{SDCPP (preprocessor)} +\begin_inset LatexCommand \index{sdcpp (preprocessor)} \end_inset @@ -25135,7 +25135,7 @@ Interfacing SDCC to Syn and Textpad \size footnotesize -\begin_inset LatexCommand \url{http://www.goalsemi.com/TB_%20Interfacing%20SDCC%20to%20Syn%20and%20Textpad.pdf} +\begin_inset LatexCommand \url{http://www.ramtron.com/doc/Products/Microcontroller/Support_Tools.asp} \end_inset @@ -25172,7 +25172,7 @@ Installing and Configuring SDCC and Crimson Editor \size footnotesize -\begin_inset LatexCommand \url{http://www.ramtron.com/lib/mcusupporttools/TB100%20-%20How%20to%20Install%20and%20Configure%20the%20SDCC%20&%20Crimson%20Editor.pdf} +\begin_inset LatexCommand \url{http://www.ramtron.com/doc/Products/Microcontroller/Support_Tools.asp} \end_inset