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:
Owen Taylor 2001-05-18 16:04:40 +00:00 committed by Owen Taylor
parent 89eb36ebc6
commit 68f8a64307
2 changed files with 7 additions and 0 deletions

View File

@ -30,7 +30,9 @@ libpango_ot_la_SOURCES = \
pango-ot-private.h \
pango-ot-ruleset.c
if BUILD_OT_TESTS
noinst_PROGRAMS = ottest
endif
ottest_SOURCES = \
ottest.c \

View File

@ -19,11 +19,16 @@
* Boston, MA 02111-1307, USA.
*/
#include <glib.h> /* For G_HAVE_ISO_VARARGS */
#include <stdarg.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)
#endif
#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_FGLYPH(strct,fld) dump (stream, indent, "<" #fld ">%#4x</" #fld ">\n", (strct)->fld)