projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setjmp.h, time_t: Remove ancient retrocompatibility; Remove MSVC double to float...
[bertos.git]
/
mware
/
formatwr.c
diff --git
a/mware/formatwr.c
b/mware/formatwr.c
index 9e85ce862508553cee6f7982633c4bbe010295ef..54d0640847d7da4a07fa9e4c5cb60ee452888198 100755
(executable)
--- a/
mware/formatwr.c
+++ b/
mware/formatwr.c
@@
-53,6
+53,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* 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.13 2005/02/18 12:33:25 bernie
*#* Avoid strlen().
*#*
@@
-73,8
+76,8
@@
*#*/
#include "formatwr.h"
*#*/
#include "formatwr.h"
-#include
"pgm.h"
-//#include <compiler.h> /* progmem macros */
+#include
<mware/pgm.h>
+#include <mware/hex.h>
#include <config.h> /* CONFIG_ macros */
#include <debug.h> /* ASSERT */
#include <config.h> /* CONFIG_ macros */
#include <debug.h> /* ASSERT */
@@
-403,7
+406,7
@@
PGM_FUNC(_formatted_write)(const char * PGM_ATTR format,
flags.progmem = false;
#endif
ptr = buf_pointer = &buf[0];
flags.progmem = false;
#endif
ptr = buf_pointer = &buf[0];
- hex =
"0123456789ABCDEF"
;
+ hex =
HEX_tab
;
/* check for leading '-', '+', ' ','#' or '0' flags */
for (;;)
/* check for leading '-', '+', ' ','#' or '0' flags */
for (;;)
@@
-575,7
+578,7
@@
NEXT_FLAG:
precision++;
#endif
case 'x':
precision++;
#endif
case 'x':
- hex =
"0123456789abcdef"
;
+ hex =
hex_tab
;
case 'u':
case 'p':
case 'X':
case 'u':
case 'p':
case 'X':