deprecated GNU ## extension used

Andreas Jaeger aj@suse.de
Tue Jul 11 09:42:00 GMT 2000


>>>>> Zack Weinberg writes:

Zack> Neil claims that all GNU-syntax varargs macros can be rewritten in C99
Zack> syntax.  I have yet to see a counterexample from real code.  If you
Zack> can show me one, I'll take it out again; otherwise I stand behind his
Zack> decision to deprecate this.

How do you rewrite this for C99 (I haven't checked if this works and
whether it is a correct GNU-syntax varargs marcro):

#define vararg_test(args...) \
somefunction("Test", ## args)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de


More information about the Libc-alpha mailing list