On Thu, Nov 14, 2002 at 03:01:18PM -0600, Kai Germaschewski wrote:
> On Mon, 11 Nov 2002, Tom Rini wrote:
>
> > Hello. The following patch makes split-include take another argument,
> > which is the prefix of what is being split up. This is needed since I'm
> > working on a system which will all
On Mon, 11 Nov 2002, Tom Rini wrote:
> Hello. The following patch makes split-include take another argument,
> which is the prefix of what is being split up. This is needed since I'm
> working on a system which will allow for various params in the kernel to
> be tweaked at compile-time, without
On Mon, Nov 11, 2002 at 05:37:10PM -0600, Peter Samuelson wrote:
> [Tom Rini]
> > First, does anyone see any problems with the patch itself?
>
> Well,
>
> > - str_config += sizeof("CONFIG_") - 1;
> > + str_config += strlen(str_split_token);
>
> it does seem a bit inefficient to call strlen
[Tom Rini]
> First, does anyone see any problems with the patch itself?
Well,
> - str_config += sizeof("CONFIG_") - 1;
> + str_config += strlen(str_split_token);
it does seem a bit inefficient to call strlen() for every single line
of every single source file. Perhaps today's compilers