Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/lib/libsa



On Sat, 15 Mar 2008, David Laight wrote:
> > >   src/sys/lib/libsa: dosfs.c
> > >Log Message:
> > >Add a local strcasecmp() instead of pulling the bloat from libkern.
> > can't we use reachover to common/lib/libc/string?
> That is where libkern gets it from, and is the function I'm trying
> to avoid!

Is there an easy way of saying

        #if optimise_for_space
                use this implementation
        #else
                use another implementation
        #endif

?

If so, then various is*() and to*() functions could switch between using
fast implementations with lookup tables, or small implementations with
conditional tests.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index