X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fformatwr.c;h=6353e1f1347cdda23dd1e08389896b5d1c0dc130;hb=faed9d33b0a6bd6c2376e313fa3b73512c545caa;hp=d69e352c7b5b5f8eb8d2315919495130d8357371;hpb=bcf38f772b397e7a8ba781a69aacb9380e54b32a;p=bertos.git diff --git a/mware/formatwr.c b/mware/formatwr.c old mode 100755 new mode 100644 index d69e352c..6353e1f1 --- a/mware/formatwr.c +++ b/mware/formatwr.c @@ -1,8 +1,33 @@ /** * \file * * * \version $Id$ @@ -51,41 +76,6 @@ * width and precision arguments. */ -/*#* - *#* $Log$ - *#* Revision 1.18 2006/07/19 12:56:27 bernie - *#* Convert to new Doxygen style. - *#* - *#* Revision 1.17 2005/11/04 17:43:27 bernie - *#* Fix for LP64 architectures; Add some more tests. - *#* - *#* Revision 1.16 2005/07/19 07:25:46 bernie - *#* Use appconfig.h instead of cfg/config.h. - *#* - *#* Revision 1.15 2005/04/11 19:10:28 bernie - *#* Include top-level headers from cfg/ subdir. - *#* - *#* Revision 1.14 2005/03/01 23:26:22 bernie - *#* Use shared hextab. - *#* - *#* Revision 1.13 2005/02/18 12:33:25 bernie - *#* Avoid strlen(). - *#* - *#* Revision 1.12 2005/02/16 20:28:03 bernie - *#* Add %S formatter. - *#* - *#* Revision 1.11 2005/02/16 16:51:29 bernie - *#* Simplify float code. - *#* - *#* Revision 1.10 2004/10/26 09:01:35 bernie - *#* Fix spacing. - *#* - *#* Revision 1.9 2004/09/14 21:06:23 bernie - *#* Spelling fix. - *#* - *#* Revision 1.8 2004/08/25 14:12:09 rasky - *#* Aggiornato il comment block dei log RCS - *#*/ #include "formatwr.h" #include @@ -498,11 +488,12 @@ NEXT_FLAG: flags.l_L_modifier = false; flags.h_modifier = false; - /* Optional 'l','L' r 'h' modifier? */ + /* Optional 'l','L','z' or 'h' modifier? */ switch (PGM_READ_CHAR(format)) { case 'l': case 'L': + case 'z': flags.l_L_modifier = true; format++; break; @@ -820,7 +811,7 @@ FLOATING_CONVERSION: #else /* PRINTF_REDUCED starts here */ #if CONFIG_PRINTF > PRINTF_NOMODIFIERS - char l_modifier, h_modifier; + bool l_modifier, h_modifier; unsigned long u_val, div_val; #else unsigned int u_val, div_val; @@ -846,16 +837,16 @@ FLOATING_CONVERSION: /*=================================*/ /* Optional 'l' or 'h' modifiers ? */ /*=================================*/ - l_modifier = h_modifier = 0; + l_modifier = h_modifier = false; switch (PGM_READ_CHAR(format)) { case 'l': - l_modifier = 1; + l_modifier = true; format++; break; case 'h': - h_modifier = 1; + h_modifier = true; format++; break; }