From: Junio C Hamano Date: Mon, 19 Feb 2007 09:38:42 GMT Subject: Re: Numeric constants as strings Message-ID: <7virdy8p25.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200702190916.35813.andyparkins@gmail.com> Andy Parkins writes: > I'm working on bringing my hash width literals patch up to > date now that 1.5.0 has passed. It's all been trivial apart > from one line: > > #define HASH_WIDTH_ASCII 40 > - printf("%-40s %s%s (%d subtrees)\n", > + printf("%-" HASH_WIDTH_ASCII "s %s%s (%d subtrees)\n", > > This compiles, but I suspect that it's not going to do what I > want it to do. Doesn't writing "foo" "bar" (two string literals next to each other) tell the compiler to concatenate them?