> I think this is beyond winemaker's scope. It would require parsing
> the file, detecting that a macro is defined and then called with a
> different number of arguments, then going back and changing the macro
> definition...
> It seems to complex, and thus too likely to fail, to me. Also it does
> not seem to be something very common that would make it really
> worthwhile. It's not like the case issues or the pack issues which occur
> many times in many applications.
well, I just had in mind to test for macros defined as
#define macro()
and replace it by #define macro (void) (or #define macro(...) for gcc)
s/[\t ]*\#[\t ]*define[\t ]+([a-zA-Z][a-zA-Z0-9_]*)\(\)/\#define $1 \(void\)/
(untested)
A+
--
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle