Use ISO C99 varargs when available.
Fri May 18 11:30:57 2001 Owen Taylor <otaylor@redhat.com> * pango/opentype/disasm.c: Use ISO C99 varargs when available. Thu May 17 11:16:23 2001 Owen Taylor <otaylor@redhat.com> * pango/mapping.c: Fixup docs, remove some FIXMEs that are no longer applicable. * pango/pango-layout.c: Move by graphemes, not characters. * pango/pango-layout.c (pango_layout_line_x_to_index): Position at the closest grapheme boundary, not at character boundaries. * pango/pango-layout.c (pango_layout_line_index_to_x): Return positions of grapheme boundaries, not character boundaries.
This commit is contained in:
parent
89eb36ebc6
commit
68f8a64307
|
@ -30,7 +30,9 @@ libpango_ot_la_SOURCES = \
|
||||||
pango-ot-private.h \
|
pango-ot-private.h \
|
||||||
pango-ot-ruleset.c
|
pango-ot-ruleset.c
|
||||||
|
|
||||||
|
if BUILD_OT_TESTS
|
||||||
noinst_PROGRAMS = ottest
|
noinst_PROGRAMS = ottest
|
||||||
|
endif
|
||||||
|
|
||||||
ottest_SOURCES = \
|
ottest_SOURCES = \
|
||||||
ottest.c \
|
ottest.c \
|
||||||
|
|
|
@ -19,11 +19,16 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <glib.h> /* For G_HAVE_ISO_VARARGS */
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "disasm.h"
|
#include "disasm.h"
|
||||||
|
|
||||||
|
#ifdef G_HAVE_ISO_VARARGS
|
||||||
|
#define DUMP(...) dump (stream, indent, __VA_ARGS__)
|
||||||
|
#elif defined (G_HAVE_GNUC_VARARGS)
|
||||||
#define DUMP(args...) dump (stream, indent, args)
|
#define DUMP(args...) dump (stream, indent, args)
|
||||||
|
#endif
|
||||||
#define DUMP_FINT(strct,fld) dump (stream, indent, "<" #fld ">%d</" #fld ">\n", (strct)->fld)
|
#define DUMP_FINT(strct,fld) dump (stream, indent, "<" #fld ">%d</" #fld ">\n", (strct)->fld)
|
||||||
#define DUMP_FUINT(strct,fld) dump (stream, indent, "<" #fld ">%u</" #fld ">\n", (strct)->fld)
|
#define DUMP_FUINT(strct,fld) dump (stream, indent, "<" #fld ">%u</" #fld ">\n", (strct)->fld)
|
||||||
#define DUMP_FGLYPH(strct,fld) dump (stream, indent, "<" #fld ">%#4x</" #fld ">\n", (strct)->fld)
|
#define DUMP_FGLYPH(strct,fld) dump (stream, indent, "<" #fld ">%#4x</" #fld ">\n", (strct)->fld)
|
||||||
|
|
Loading…
Reference in New Issue