Re: [PATCH] very small cleanup: #undef a macro that isn't used anywhere else

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Git Mailing List <git@...>
Date: Monday, November 10, 2008 - 3:09 pm

Le Monday 10 November 2008 20:09:21 Johannes Schindelin, vous avez écrit :

Hmwell, this is a twofold argument, I guess...

* for: the macro is defined, not undefined: it means that potentially, it can 
be used somewhere else in the file; but it isn't (in this case);
* against: macros defined in a C file only ever have scope in said file 
(unless so mischievous Makefile cats two C files together before compile and 
file order is important -- but git doesn't do that), so why #undefine 
anything?

Personally, I'm with the first argument. YMMV, of course.

-- 
fge
--
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.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] very small cleanup: #undef a macro that isn't us..., Johannes Schindelin, (Mon Nov 10, 3:09 pm)
Re: [PATCH] very small cleanup: #undef a macro that isn't us..., Francis Galiegue, (Mon Nov 10, 3:09 pm)