mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
[lazy] Rename free()
This commit is contained in:
1 parent
a3b97db910
commit
7bd508a0c4
7 files changed
+11
-11
No files matched your search
+2
-2
@@ -454,7 +454,7 @@ static struct hb_ft_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t<hb_ft
|
||||
static
|
||||
void free_static_ft_funcs (void)
|
||||
{
|
||||
static_ft_funcs.free ();
|
||||
static_ft_funcs.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -714,7 +714,7 @@ static struct hb_ft_library_lazy_loader_t : hb_lazy_loader_t<hb_remove_ptr_t<FT_
|
||||
static
|
||||
void free_static_ft_library (void)
|
||||
{
|
||||
static_ft_library.free ();
|
||||
static_ft_library.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -394,7 +394,7 @@ static struct hb_glib_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader
|
||||
static
|
||||
void free_static_glib_funcs (void)
|
||||
{
|
||||
static_glib_funcs.free ();
|
||||
static_glib_funcs.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -383,7 +383,7 @@ static struct hb_icu_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader_
|
||||
static
|
||||
void free_static_icu_funcs (void)
|
||||
{
|
||||
static_icu_funcs.free ();
|
||||
static_icu_funcs.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -637,7 +637,7 @@ struct hb_lazy_loader_t : hb_data_wrapper_t<Data, WheresData>
|
||||
{
|
||||
do_destroy (instance.get ());
|
||||
}
|
||||
inline void free (void)
|
||||
inline void free_instance (void)
|
||||
{
|
||||
retry:
|
||||
Stored *p = instance.get ();
|
||||
@@ -720,7 +720,7 @@ struct hb_lazy_loader_t : hb_data_wrapper_t<Data, WheresData>
|
||||
static inline void destroy (Stored *p)
|
||||
{
|
||||
p->fini ();
|
||||
::free (p);
|
||||
free (p);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
+1
-1
@@ -264,7 +264,7 @@ static struct hb_ot_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t<hb_ot
|
||||
static
|
||||
void free_static_ot_funcs (void)
|
||||
{
|
||||
static_ot_funcs.free ();
|
||||
static_ot_funcs.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+3
-3
@@ -50,7 +50,7 @@
|
||||
static void free_static_shaper_list (void);
|
||||
|
||||
static struct hb_shaper_list_lazy_loader_t : hb_lazy_loader_t<const char *,
|
||||
hb_shaper_list_lazy_loader_t>
|
||||
hb_shaper_list_lazy_loader_t>
|
||||
{
|
||||
static inline const char ** create (void)
|
||||
{
|
||||
@@ -72,7 +72,7 @@ static struct hb_shaper_list_lazy_loader_t : hb_lazy_loader_t<const char *,
|
||||
}
|
||||
static inline void destroy (const char **l)
|
||||
{
|
||||
::free (l);
|
||||
free (l);
|
||||
}
|
||||
static inline const char ** get_null (void)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ static struct hb_shaper_list_lazy_loader_t : hb_lazy_loader_t<const char *,
|
||||
static
|
||||
void free_static_shaper_list (void)
|
||||
{
|
||||
static_shaper_list.free ();
|
||||
static_shaper_list.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -267,7 +267,7 @@ static struct hb_ucdn_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader
|
||||
static
|
||||
void free_static_ucdn_funcs (void)
|
||||
{
|
||||
static_ucdn_funcs.free ();
|
||||
static_ucdn_funcs.free_instance ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user