From: Krzysztof Halasa Date: Mon, 19 Feb 2007 20:50:49 GMT Subject: Re: [PATCH] Change "refs/" references to symbolic constants Message-ID: In-Reply-To: <17881.62094.56975.799862@lisa.zopyra.com> Bill Lear writes: > 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