From: Bill Lear Date: Mon, 19 Feb 2007 18:55:10 GMT Subject: Re: [PATCH] Change "refs/" references to symbolic constants Message-ID: <17881.62094.56975.799862@lisa.zopyra.com> In-Reply-To: <200702191839.05784.andyparkins@gmail.com> On Monday, February 19, 2007 at 18:39:05 (+0000) Andy Parkins writes: >... >+#define PATH_REMOTES "remotes/" >+#define STRLEN_PATH_REMOTES 8 >... 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) Bill