NULL =
-INCLUDES = \
- -I $(srcdir) \
- $(FREETYPE_CFLAGS) \
- $(GLIB_CFLAGS)
CXX = gcc -g -O2 -fno-rtti -fno-exceptions -Wabi -Wpadded -Wcast-align
noinst_LTLIBRARIES = libharfbuzz-1.la
$(NULL)
libharfbuzz_1_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
-libharfbuzz_1_la_LIBADD = $(FREETYPE_LIBS)
+libharfbuzz_1_la_LIBADD =
noinst_PROGRAMS = main
main_SOURCES = main.cc
+main_CXXFLAGS = $(GLIB_CFLAGS)
main_LDADD = $(GLIB_LIBS)
EXTRA_DIST = README COPYING
for (i = 0; i < num_out; i++)
{
hb_glyph_info_t *info = &buffer->out_string[buffer->out_pos + i];
- info->gindex = hb_be_uint16_t (glyph_data_be[i]);
+ info->gindex = hb_be_uint16 (glyph_data_be[i]);
info->properties = properties;
info->cluster = cluster;
info->component = component;
#include "hb-common.h"
-#include <glib.h>
-
-/* Macros to convert to/from BigEndian */
-#define hb_be_uint8
-#define hb_be_int8
-#define hb_be_uint16 GUINT16_TO_BE
-#define hb_be_int16 GINT16_TO_BE
-#define hb_be_uint32 GUINT32_TO_BE
-#define hb_be_int32 GINT32_TO_BE
-#define hb_be_uint64 GUINT64_TO_BE
-#define hb_be_int64 GINT64_TO_BE
-
/* Basics */
#undef MIN
#endif
}
+static HB_GNUC_UNUSED inline uint16_t
+_hb_be_uint16 (uint16_t v)
+{
+ return (v>>8) + (v<<8);
+}
+static HB_GNUC_UNUSED inline uint32_t
+_hb_be_uint32 (uint32_t v)
+{
+ return _hb_be_uint16 (v>>16) + (_hb_be_uint16 (v) <<16);
+}
+
+/* Macros to convert to/from BigEndian */
+#define hb_be_uint8
+#define hb_be_int8
+#define hb_be_uint16(v) _hb_be_uint16 (v)
+#define hb_be_int16(v) ((int16_t) hb_be_uint16 (v))
+#define hb_be_uint32(v) _hb_be_uint32 (v)
+#define hb_be_int32(v) ((int32_t) hb_be_uint32 (v))
#include "hb-object-private.h"