Re: [PATCH] Change "refs/" references to symbolic constants
- From
- Krzysztof Halasa <khc@pm.waw.pl>
- Date
- Feb 19, 2007, 20:50 UTC
- Message-ID
- <m3fy91q3bq.fsf@maximus.localdomain>
- In-Reply-To
- <17881.62094.56975.799862@lisa.zopyra.com>
Bill Lear <rael@zopyra.com> writes:
Show 5 quoted lines
> Would this be less error-prone, and just as efficient?: > > #define PATH_REMOTES "remotes/" > #define LIT_STRLEN(S) ((sizeof(S) / sizeof(S[0])) -1) > #define STRLEN_PATH_REMOTES LIT_STRLEN(PATH_REMOTES)
sizeof(char) is always 1.
-- Krzysztof Halasa