Messages in this thread | | | Subject | Re: [PATCH 1/4] lib: add ascii hex helper functions | From | Harvey Harrison <> | Date | Thu, 01 May 2008 14:58:58 -0700 |
| |
On Thu, 2008-05-01 at 14:44 -0700, Joe Perches wrote: > On Thu, 2008-05-01 at 14:35 -0700, Harvey Harrison wrote: > > The whole point is to start to centralize everybody's private copy of > > a hex_asc equivalent. > > Which should be done via some function, > not via a char array right? >
It's just getting a char from the array, a static inline maybe rather than the hex_asc_hi/lo macros, but the array would still need to be extern so the inlines could get at it. The whole point is avoiding a function call...which is why everybody has their own static array they can use directly in the first place.
Harvey
| |