Make source more digestable for gobject-introspection
This commit is contained in:
parent
84d781e54c
commit
1bc1cb3603
@ -46,7 +46,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
struct _hb_blob_t {
|
||||
struct hb_blob_t {
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
||||
|
@ -43,7 +43,7 @@ typedef enum {
|
||||
HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE
|
||||
} hb_memory_mode_t;
|
||||
|
||||
typedef struct _hb_blob_t hb_blob_t;
|
||||
typedef struct hb_blob_t hb_blob_t;
|
||||
|
||||
hb_blob_t *
|
||||
hb_blob_create (const char *data,
|
||||
|
@ -40,7 +40,7 @@
|
||||
ASSERT_STATIC (sizeof (hb_glyph_info_t) == 20);
|
||||
ASSERT_STATIC (sizeof (hb_glyph_info_t) == sizeof (hb_glyph_position_t));
|
||||
|
||||
typedef struct _hb_segment_properties_t {
|
||||
typedef struct hb_segment_properties_t {
|
||||
hb_direction_t direction;
|
||||
hb_script_t script;
|
||||
hb_language_t language;
|
||||
@ -48,7 +48,7 @@ typedef struct _hb_segment_properties_t {
|
||||
} hb_segment_properties_t;
|
||||
|
||||
|
||||
struct _hb_buffer_t {
|
||||
struct hb_buffer_t {
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
||||
|
@ -40,9 +40,9 @@
|
||||
HB_BEGIN_DECLS
|
||||
|
||||
|
||||
typedef struct _hb_buffer_t hb_buffer_t;
|
||||
typedef struct hb_buffer_t hb_buffer_t;
|
||||
|
||||
typedef struct _hb_glyph_info_t {
|
||||
typedef struct hb_glyph_info_t {
|
||||
hb_codepoint_t codepoint;
|
||||
hb_mask_t mask;
|
||||
uint32_t cluster;
|
||||
@ -52,7 +52,7 @@ typedef struct _hb_glyph_info_t {
|
||||
hb_var_int_t var2;
|
||||
} hb_glyph_info_t;
|
||||
|
||||
typedef struct _hb_glyph_position_t {
|
||||
typedef struct hb_glyph_position_t {
|
||||
hb_position_t x_advance;
|
||||
hb_position_t y_advance;
|
||||
hb_position_t x_offset;
|
||||
|
@ -98,7 +98,7 @@ hb_direction_to_string (hb_direction_t direction)
|
||||
|
||||
/* hb_language_t */
|
||||
|
||||
struct _hb_language_t {
|
||||
struct hb_language_impl_t {
|
||||
const char s[1];
|
||||
};
|
||||
|
||||
|
@ -124,7 +124,7 @@ hb_direction_to_string (hb_direction_t direction);
|
||||
|
||||
/* hb_language_t */
|
||||
|
||||
typedef struct _hb_language_t *hb_language_t;
|
||||
typedef struct hb_language_impl_t *hb_language_t;
|
||||
|
||||
/* len=-1 means str is NUL-terminated */
|
||||
hb_language_t
|
||||
@ -333,7 +333,7 @@ hb_script_get_horizontal_direction (hb_script_t script);
|
||||
|
||||
/* User data */
|
||||
|
||||
typedef struct _hb_user_data_key_t {
|
||||
typedef struct hb_user_data_key_t {
|
||||
/*< private >*/
|
||||
char unused;
|
||||
} hb_user_data_key_t;
|
||||
|
@ -54,7 +54,7 @@
|
||||
HB_FONT_FUNC_IMPLEMENT (glyph_from_name) \
|
||||
/* ^--- Add new callbacks here */
|
||||
|
||||
struct _hb_font_funcs_t {
|
||||
struct hb_font_funcs_t {
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
||||
@ -86,7 +86,7 @@ struct _hb_font_funcs_t {
|
||||
* hb_face_t
|
||||
*/
|
||||
|
||||
struct _hb_face_t {
|
||||
struct hb_face_t {
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
||||
@ -107,7 +107,7 @@ struct _hb_face_t {
|
||||
* hb_font_t
|
||||
*/
|
||||
|
||||
struct _hb_font_t {
|
||||
struct hb_font_t {
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
||||
|
@ -619,7 +619,7 @@ hb_face_create_for_tables (hb_reference_table_func_t reference_table,
|
||||
}
|
||||
|
||||
|
||||
typedef struct _hb_face_for_data_closure_t {
|
||||
typedef struct hb_face_for_data_closure_t {
|
||||
hb_blob_t *blob;
|
||||
unsigned int index;
|
||||
} hb_face_for_data_closure_t;
|
||||
|
@ -37,8 +37,8 @@
|
||||
HB_BEGIN_DECLS
|
||||
|
||||
|
||||
typedef struct _hb_face_t hb_face_t;
|
||||
typedef struct _hb_font_t hb_font_t;
|
||||
typedef struct hb_face_t hb_face_t;
|
||||
typedef struct hb_font_t hb_font_t;
|
||||
|
||||
/*
|
||||
* hb_face_t
|
||||
@ -110,7 +110,7 @@ hb_face_get_upem (hb_face_t *face);
|
||||
* hb_font_funcs_t
|
||||
*/
|
||||
|
||||
typedef struct _hb_font_funcs_t hb_font_funcs_t;
|
||||
typedef struct hb_font_funcs_t hb_font_funcs_t;
|
||||
|
||||
hb_font_funcs_t *
|
||||
hb_font_funcs_create (void);
|
||||
@ -145,7 +145,7 @@ hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs);
|
||||
|
||||
/* funcs */
|
||||
|
||||
typedef struct _hb_glyph_extents_t
|
||||
typedef struct hb_glyph_extents_t
|
||||
{
|
||||
hb_position_t x_bearing;
|
||||
hb_position_t y_bearing;
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
/* TODO Make this faster and memmory efficient. */
|
||||
|
||||
struct _hb_set_t
|
||||
struct hb_set_t
|
||||
{
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
@ -36,7 +36,7 @@
|
||||
HB_BEGIN_DECLS
|
||||
|
||||
|
||||
typedef struct _hb_set_t hb_set_t;
|
||||
typedef struct hb_set_t hb_set_t;
|
||||
|
||||
|
||||
hb_set_t *
|
||||
|
@ -38,7 +38,7 @@
|
||||
HB_BEGIN_DECLS
|
||||
|
||||
|
||||
typedef struct _hb_feature_t {
|
||||
typedef struct hb_feature_t {
|
||||
hb_tag_t tag;
|
||||
uint32_t value;
|
||||
unsigned int start;
|
||||
|
@ -61,7 +61,7 @@
|
||||
HB_UNICODE_FUNC_IMPLEMENT (hb_script_t, script) \
|
||||
/* ^--- Add new simple callbacks here */
|
||||
|
||||
struct _hb_unicode_funcs_t {
|
||||
struct hb_unicode_funcs_t {
|
||||
hb_object_header_t header;
|
||||
ASSERT_POD ();
|
||||
|
||||
|
@ -44,7 +44,7 @@ HB_BEGIN_DECLS
|
||||
* hb_unicode_funcs_t
|
||||
*/
|
||||
|
||||
typedef struct _hb_unicode_funcs_t hb_unicode_funcs_t;
|
||||
typedef struct hb_unicode_funcs_t hb_unicode_funcs_t;
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user