-2005-10-14 Ross Burton <ross@burtonini.com>
+2005-10-20 Marcus Meissner <meissner@suse.de>
+ reviewed by: plam
+
+ * fontconfig/fontconfig.h:
+
+ Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
+
+2005-10-14 Ross Burton <ross@burtonini.com>
reviewed by: plam
* fc-glyphname/fc-glyphname.c:
#include <stdarg.h>
+#if defined(__GNUC__) && (__GNUC__ >= 4)
+#define FC_ATTRIBUTE_SENTINEL(x) __attribute__((__sentinel__(0)))
+#else
+#define FC_ATTRIBUTE_SENTINEL(x)
+#endif
+
typedef unsigned char FcChar8;
typedef unsigned short FcChar16;
typedef unsigned int FcChar32;
FcObjectSetVaBuild (const char *first, va_list va);
FcObjectSet *
-FcObjectSetBuild (const char *first, ...);
+FcObjectSetBuild (const char *first, ...) FC_ATTRIBUTE_SENTINEL(0);
FcFontSet *
FcFontSetList (FcConfig *config,
FcPatternVaBuild (FcPattern *orig, va_list va);
FcPattern *
-FcPatternBuild (FcPattern *orig, ...);
+FcPatternBuild (FcPattern *orig, ...) FC_ATTRIBUTE_SENTINEL(0);
/* fcstr.c */
_FCFUNCPROTOEND
+#undef FC_ATTRIBUTE_SENTINEL
+
#endif /* _FONTCONFIG_H_ */