[gst-devel] preprocessor/965: Preprocessor varargs fails in some casess

omegahacker at users.sourceforge.net omegahacker at users.sourceforge.net
Sun Dec 3 04:23:05 CET 2000

>Number:         965
>Category:       preprocessor
>Synopsis:       Preprocessor varargs fails in some casess
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 02 19:26:00 PST 2000
>Originator:     Erik Walthinsen
>Release:        egcs-2.91.66, egcs-2.90.27, 2.96 20000606 (experimental)
RedHat 6.1 x86 and others
The following creates invalide code:

#define DEBUG(format,args...) \
  fprintf(stderr,"%s: " format,_debug_string,##args)
DEBUG("no format chars");

That expands to roughly:

fprintf(stderr,"%s: "no format chars");

The problem appears to be that the comma-stripping of the
##args extension is a little to aggressive, resulting in the
stripping of a valid argument from the commandline.



More information about the gstreamer-devel mailing list