Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.

reviewed by: plam
This commit is contained in:
Patrick Lam 2005-10-20 20:50:21 +00:00
parent 21696e5bf0
commit 250c1cd422
2 changed files with 18 additions and 3 deletions

View File

@ -1,4 +1,11 @@
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:

View File

@ -27,6 +27,12 @@
#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;
@ -534,7 +540,7 @@ FcObjectSet *
FcObjectSetVaBuild (const char *first, va_list va);
FcObjectSet *
FcObjectSetBuild (const char *first, ...);
FcObjectSetBuild (const char *first, ...) FC_ATTRIBUTE_SENTINEL(0);
FcFontSet *
FcFontSetList (FcConfig *config,
@ -751,7 +757,7 @@ FcPattern *
FcPatternVaBuild (FcPattern *orig, va_list va);
FcPattern *
FcPatternBuild (FcPattern *orig, ...);
FcPatternBuild (FcPattern *orig, ...) FC_ATTRIBUTE_SENTINEL(0);
/* fcstr.c */
@ -853,4 +859,6 @@ FcConfigParseAndLoad (FcConfig *config, const FcChar8 *file, FcBool complain);
_FCFUNCPROTOEND
#undef FC_ATTRIBUTE_SENTINEL
#endif /* _FONTCONFIG_H_ */