diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-28 01:42:03 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-28 01:42:03 +0200 |
commit | 1ca079bc46a3ddfb5e4d017473324bad67139a88 (patch) | |
tree | 65c664a65df9ae42b232f3b1871699c68aa4b386 /libass/ass_cache.h | |
parent | f21c5b6b2788d1ba2073cb4066eedee0de1b249e (diff) | |
download | libass-1ca079bc46a3ddfb5e4d017473324bad67139a88.tar.bz2 libass-1ca079bc46a3ddfb5e4d017473324bad67139a88.tar.xz |
Clean up typedefs/structs
Remove useless _s suffix from struct names and remove struct name where
not needed (only the typedef'd struct is used). Clean up API headers.
Diffstat (limited to 'libass/ass_cache.h')
-rw-r--r-- | libass/ass_cache.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libass/ass_cache.h b/libass/ass_cache.h index e31d8cf..c2c6d2a 100644 --- a/libass/ass_cache.h +++ b/libass/ass_cache.h @@ -31,14 +31,14 @@ typedef int (*hashmap_key_compare_t) (void *key1, void *key2, size_t key_size); typedef unsigned (*hashmap_hash_t) (void *key, size_t key_size); -typedef struct hashmap_item_s { +typedef struct hashmap_item { void *key; void *value; - struct hashmap_item_s *next; + struct hashmap_item *next; } hashmap_item_t; typedef hashmap_item_t *hashmap_item_p; -typedef struct hashmap_s { +typedef struct { int nbuckets; size_t key_size, value_size; hashmap_item_p *root; @@ -71,7 +71,7 @@ void ass_font_cache_done(hashmap_t *); #define CREATE_STRUCT_DEFINITIONS #include "ass_cache_template.h" -typedef struct bitmap_hash_val_s { +typedef struct { bitmap_t *bm; // the actual bitmaps bitmap_t *bm_o; bitmap_t *bm_s; @@ -86,7 +86,7 @@ hashmap_t *ass_bitmap_cache_reset(hashmap_t *bitmap_cache); void ass_bitmap_cache_done(hashmap_t *bitmap_cache); -typedef struct composite_hash_val_s { +typedef struct { unsigned char *a; unsigned char *b; } composite_hash_val_t; @@ -100,7 +100,7 @@ hashmap_t *ass_composite_cache_reset(hashmap_t *composite_cache); void ass_composite_cache_done(hashmap_t *composite_cache); -typedef struct glyph_hash_val_s { +typedef struct { FT_Glyph glyph; FT_Glyph outline_glyph; FT_BBox bbox_scaled; // bbox after scaling, but before rotation |