Re: [PATCH 1/4] lib: add ascii hex helper functions
From: Harvey Harrison
Date: Thu May 01 2008 - 17:58:49 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/