Undid the fix for bug #519584
[fw/sdcc] / device / lib / printf_fast.c
index a385aff84abf76df564005c0e900677207e0186a..fc067d18ece1fb964bf5620a9858492f6716ef4a 100644 (file)
@@ -2,11 +2,11 @@
  * Copyright (c) 2001, Paul Stoffregen, paul@pjrc.com
  *
  * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
+ * modify it under the terms of the GNU Library General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
@@ -149,12 +149,12 @@ printf_eot:
 
 
        /* print a string... just grab each byte with __gptrget */
-       /* the user much pass a 24 bit _generic pointer */
+       /* the user much pass a 24 bit generic pointer */
 
 printf_string:
        push    dph             // save addr in fmt onto stack
        push    dpl
-       mov     b, @r0          // b has type of address (_generic *)
+       mov     b, @r0          // b has type of address (generic *)
        dec     r0
        mov     dph, @r0
        dec     r0
@@ -176,7 +176,7 @@ printf_str_space:
        lcall   printf_space
        pop     dph
        pop     dpl
-#endif FIELD_WIDTH
+#endif // FIELD_WIDTH
 
 printf_str_loop:
        lcall   __gptrget