]> git.gag.com Git - fw/sdcc/commitdiff
* device/lib/printf_large.c: slightly smaller
authorfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 16 Oct 2006 15:38:12 +0000 (15:38 +0000)
committerfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 16 Oct 2006 15:38:12 +0000 (15:38 +0000)
* 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

ChangeLog
device/lib/printf_large.c
doc/sdccman.lyx

index ed443662654e8f037c51f0a092785f326eb7b8bc..6d8df6e2b35bd86ce41e4359099dc0d8b2b3ea51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
+
+       * device/lib/printf_large.c: slightly smaller
+       * doc/sdccman.lyx: do not use spaces within html links
+
 2006-10-16 Borut Razem <borut.razem AT siol.net>
 
        * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
index d684258b0ce54bb7109f0a3f205e02c9217ca0b1..4af055aa85275797db095b0e60d7209f07f49322 100644 (file)
@@ -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))
index d1eb77e5c796292d0632a9f619bd8887491cdcf0..ed99a2e64d84027becd4b3cf38183f11fa99e453 100644 (file)
@@ -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