On Thu, Sep 22, 2005 at 05:47:04PM +0200, Jan Engelhardt wrote:
> 
> >> A Macro would waste some space for duplicate string constants, I would
> >> rather vote for something like
> >> 
> >> const char whiteout_prefix[] = ".wh.";
> >
> >Contemporary compilers can optimize string constants and they will not
> >waste spaces. But I agree with you. Yours is better.
> 
> The only kernel compilers are gcc and icc. At least one of them merges 
> read-only strings unless -fwritable-strings is in effect.

Well, sizeof(".wh.") is evaluated at compile-time anyways, and the
string won't even be found in the object code. Saving bytes may not be
the top priority at the moment anyways, until the code is finally
stable, so just don't worry about my thread about macros vs.  constants
right now. :-)

Regards
-Klaus Knopper
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to