On 5/17/06, Junio C Hamano <junkio@cox.net> wrote: > +ifdef NO_H_OPTION_IN_GREP > + NO_H_OPTION_IN_GREP=1 > +else > + NO_H_OPTION_IN_GREP=0 > +endif > + if (NO_H_OPTION_IN_GREP) > + push_arg("/dev/null"); > + else { > + push_arg("-H"); > + push_arg("--"); > + } Sorry, maybe a C code beginner question but while you define NO_H_OPTION_IN_GREP in Makefile, why don't use a build time ``if'' instead of a runtime one ? Like : #if NO_H_OPTION_IN_GREP push_arg("/dev/null"); #else push_arg("-H"); push_arg("--"); #fi -- Beber #e.fr@freenode - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Thu May 18 01:40:03 2006
This archive was generated by hypermail 2.1.8 : 2006-05-18 01:40:28 EST