[Gstreamer-bugs] [Bug 99815] New - gstreamer should use ISO __VAR_ARGS__

bugzilla-daemon at widget.gnome.org bugzilla-daemon at widget.gnome.org
Thu Nov 28 06:06:58 PST 2002


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=99815

Changed by brian.cameron at ireland.sun.com.

--- shadow/99815	Thu Nov 28 09:06:58 2002
+++ shadow/99815.tmp.18959	Thu Nov 28 09:06:58 2002
@@ -0,0 +1,38 @@
+Bug#: 99815
+Product: GStreamer
+Version: 0.3.3
+OS: Solaris
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: major
+Priority: Normal
+Component: gstreamer (core)
+AssignedTo: gstreamer-maint at bugzilla.gnome.org                            
+ReportedBy: brian.cameron at ireland.sun.com               
+QAContact: gstreamer-maint at bugzilla.gnome.org
+TargetMilestone: 0.4.0
+URL: 
+Summary: gstreamer should use ISO __VAR_ARGS__
+
+Because Gstreamer uses the GCC specific style of handling variable
+arguments in macros, gstreamer can only be compiled by gcc.
+
+Gstreamer header files should use the ISO standard for variable arguments
+(since the ISO standard is supported by both gcc and ISO standard
+compilers).
+
+  #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
+
+Rather than the GCC specific style:
+
+  #define debug(format, args...) fprintf (stderr, format, args)
+
+Note that the ISO standard does not support the "##" syntax to remove
+the extra comma if the variable arguments are omitted.  So, for example,
+the GST_PROPS_LIST() in gst/gstprops.h and some macros in gst/gstinfo.h
+will need some extra attention.
+
+You can read more information about this here:
+
+http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variadic-Macros.html#Variadic%20Macros





More information about the Gstreamer-bugs mailing list