From f96ffd43bce0ac6d9c897933c9be0e51d543e570 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 24 May 2009 15:01:16 -0400 Subject: [PATCH] [HB] simplify macros --- src/hb-buffer-private.h | 4 ++-- src/hb-buffer.h | 4 ++-- src/hb-common.h | 8 ++++---- src/hb-ot-layout-private.h | 4 ++-- src/hb-ot-layout.h | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/hb-buffer-private.h b/src/hb-buffer-private.h index 5268c04c8..40021fd01 100644 --- a/src/hb-buffer-private.h +++ b/src/hb-buffer-private.h @@ -31,7 +31,7 @@ #include "hb-private.h" #include "hb-buffer.h" -HB_BEGIN_DECLS(); +HB_BEGIN_DECLS #define HB_GLYPH_PROPERTY_UNKNOWN 0xFFFF @@ -101,6 +101,6 @@ _hb_buffer_allocate_ligid (hb_buffer_t *buffer); #define COPY_Glyph (buffer) \ ((error = _hb_buffer_next_glyph (buffer)) != HB_Err_Ok) -HB_END_DECLS(); +HB_END_DECLS #endif /* HB_BUFFER_PRIVATE_H */ diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 93ac3eecd..1e660f44b 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -30,7 +30,7 @@ #include "hb-common.h" -HB_BEGIN_DECLS(); +HB_BEGIN_DECLS typedef struct HB_GlyphItemRec_ { hb_codepoint_t gindex; @@ -89,6 +89,6 @@ hb_buffer_add_glyph (hb_buffer_t *buffer, unsigned int properties, unsigned int cluster); -HB_END_DECLS(); +HB_END_DECLS #endif /* HB_BUFFER_H */ diff --git a/src/hb-common.h b/src/hb-common.h index 1cdbd5eaf..2b42216eb 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -30,11 +30,11 @@ #include # ifdef __cplusplus -# define HB_BEGIN_DECLS() extern "C" { extern int _hb_dummy_prototype1 (int) -# define HB_END_DECLS() } extern "C" int _hb_dummy_prototype2 (int) +# define HB_BEGIN_DECLS extern "C" { +# define HB_END_DECLS } # else /* !__cplusplus */ -# define HB_BEGIN_DECLS() extern int _hb_dummy_prototype1 (int) -# define HB_END_DECLS() extern int _hb_dummy_prototype2 (int) +# define HB_BEGIN_DECLS +# define HB_END_DECLS # endif /* !__cplusplus */ typedef int hb_bool_t; diff --git a/src/hb-ot-layout-private.h b/src/hb-ot-layout-private.h index a469119e4..27a18b83a 100644 --- a/src/hb-ot-layout-private.h +++ b/src/hb-ot-layout-private.h @@ -67,7 +67,7 @@ struct _hb_ot_layout_t /* XXX #define HB_OT_LAYOUT_INTERNAL static */ #define HB_OT_LAYOUT_INTERNAL -HB_BEGIN_DECLS(); +HB_BEGIN_DECLS /* * GDEF @@ -96,6 +96,6 @@ void hb_buffer_ensure (hb_buffer_t *buffer, unsigned int size); -HB_END_DECLS(); +HB_END_DECLS #endif /* HB_OT_LAYOUT_PRIVATE_H */ diff --git a/src/hb-ot-layout.h b/src/hb-ot-layout.h index c1dbdcae3..f39beb7df 100644 --- a/src/hb-ot-layout.h +++ b/src/hb-ot-layout.h @@ -30,7 +30,7 @@ #include "hb-common.h" #include "hb-buffer.h" -HB_BEGIN_DECLS(); +HB_BEGIN_DECLS /* * hb_ot_layout_t @@ -245,6 +245,6 @@ hb_ot_layout_position_lookup (hb_ot_layout_t *layout, */ -HB_END_DECLS(); +HB_END_DECLS #endif /* HB_OT_LAYOUT_H */