[HB] simplify macros
This commit is contained in:
parent
8e7b30782a
commit
f96ffd43bc
|
@ -31,7 +31,7 @@
|
||||||
#include "hb-private.h"
|
#include "hb-private.h"
|
||||||
#include "hb-buffer.h"
|
#include "hb-buffer.h"
|
||||||
|
|
||||||
HB_BEGIN_DECLS();
|
HB_BEGIN_DECLS
|
||||||
|
|
||||||
#define HB_GLYPH_PROPERTY_UNKNOWN 0xFFFF
|
#define HB_GLYPH_PROPERTY_UNKNOWN 0xFFFF
|
||||||
|
|
||||||
|
@ -101,6 +101,6 @@ _hb_buffer_allocate_ligid (hb_buffer_t *buffer);
|
||||||
#define COPY_Glyph (buffer) \
|
#define COPY_Glyph (buffer) \
|
||||||
((error = _hb_buffer_next_glyph (buffer)) != HB_Err_Ok)
|
((error = _hb_buffer_next_glyph (buffer)) != HB_Err_Ok)
|
||||||
|
|
||||||
HB_END_DECLS();
|
HB_END_DECLS
|
||||||
|
|
||||||
#endif /* HB_BUFFER_PRIVATE_H */
|
#endif /* HB_BUFFER_PRIVATE_H */
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "hb-common.h"
|
#include "hb-common.h"
|
||||||
|
|
||||||
HB_BEGIN_DECLS();
|
HB_BEGIN_DECLS
|
||||||
|
|
||||||
typedef struct HB_GlyphItemRec_ {
|
typedef struct HB_GlyphItemRec_ {
|
||||||
hb_codepoint_t gindex;
|
hb_codepoint_t gindex;
|
||||||
|
@ -89,6 +89,6 @@ hb_buffer_add_glyph (hb_buffer_t *buffer,
|
||||||
unsigned int properties,
|
unsigned int properties,
|
||||||
unsigned int cluster);
|
unsigned int cluster);
|
||||||
|
|
||||||
HB_END_DECLS();
|
HB_END_DECLS
|
||||||
|
|
||||||
#endif /* HB_BUFFER_H */
|
#endif /* HB_BUFFER_H */
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
# define HB_BEGIN_DECLS() extern "C" { extern int _hb_dummy_prototype1 (int)
|
# define HB_BEGIN_DECLS extern "C" {
|
||||||
# define HB_END_DECLS() } extern "C" int _hb_dummy_prototype2 (int)
|
# define HB_END_DECLS }
|
||||||
# else /* !__cplusplus */
|
# else /* !__cplusplus */
|
||||||
# define HB_BEGIN_DECLS() extern int _hb_dummy_prototype1 (int)
|
# define HB_BEGIN_DECLS
|
||||||
# define HB_END_DECLS() extern int _hb_dummy_prototype2 (int)
|
# define HB_END_DECLS
|
||||||
# endif /* !__cplusplus */
|
# endif /* !__cplusplus */
|
||||||
|
|
||||||
typedef int hb_bool_t;
|
typedef int hb_bool_t;
|
||||||
|
|
|
@ -67,7 +67,7 @@ struct _hb_ot_layout_t
|
||||||
/* XXX #define HB_OT_LAYOUT_INTERNAL static */
|
/* XXX #define HB_OT_LAYOUT_INTERNAL static */
|
||||||
#define HB_OT_LAYOUT_INTERNAL
|
#define HB_OT_LAYOUT_INTERNAL
|
||||||
|
|
||||||
HB_BEGIN_DECLS();
|
HB_BEGIN_DECLS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GDEF
|
* GDEF
|
||||||
|
@ -96,6 +96,6 @@ void
|
||||||
hb_buffer_ensure (hb_buffer_t *buffer,
|
hb_buffer_ensure (hb_buffer_t *buffer,
|
||||||
unsigned int size);
|
unsigned int size);
|
||||||
|
|
||||||
HB_END_DECLS();
|
HB_END_DECLS
|
||||||
|
|
||||||
#endif /* HB_OT_LAYOUT_PRIVATE_H */
|
#endif /* HB_OT_LAYOUT_PRIVATE_H */
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "hb-common.h"
|
#include "hb-common.h"
|
||||||
#include "hb-buffer.h"
|
#include "hb-buffer.h"
|
||||||
|
|
||||||
HB_BEGIN_DECLS();
|
HB_BEGIN_DECLS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* hb_ot_layout_t
|
* 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 */
|
#endif /* HB_OT_LAYOUT_H */
|
||||||
|
|
Loading…
Reference in New Issue