From d3d9dd63f231ecdbeeade3f73fe4e3bf307061e1 Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 1 Mar 2005 23:26:22 +0000 Subject: [PATCH] Use shared hextab. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@389 38d2e660-2303-0410-9eaa-f027e97ec537 --- mware/formatwr.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mware/formatwr.c b/mware/formatwr.c index 9e85ce86..54d06408 100755 --- a/mware/formatwr.c +++ b/mware/formatwr.c @@ -53,6 +53,9 @@ /*#* *#* $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(). *#* @@ -73,8 +76,8 @@ *#*/ #include "formatwr.h" -#include "pgm.h" -//#include /* progmem macros */ +#include +#include #include /* CONFIG_ macros */ #include /* ASSERT */ @@ -403,7 +406,7 @@ PGM_FUNC(_formatted_write)(const char * PGM_ATTR format, flags.progmem = false; #endif ptr = buf_pointer = &buf[0]; - hex = "0123456789ABCDEF"; + hex = HEX_tab; /* check for leading '-', '+', ' ','#' or '0' flags */ for (;;) @@ -575,7 +578,7 @@ NEXT_FLAG: precision++; #endif case 'x': - hex = "0123456789abcdef"; + hex = hex_tab; case 'u': case 'p': case 'X': -- 2.25.1