Use ISO C99 varargs when available.
authorOwen Taylor <otaylor@redhat.com>
Fri, 18 May 2001 16:04:40 +0000 (16:04 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 18 May 2001 16:04:40 +0000 (16:04 +0000)
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.

src/Makefile.am
src/disasm.c

index 553a775..f42516d 100644 (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        \
index 2e064ec..d55a359 100644 (file)
  * 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)