summaryrefslogtreecommitdiff
path: root/source/fitz/harfbuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/harfbuzz.c')
-rw-r--r--source/fitz/harfbuzz.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/fitz/harfbuzz.c b/source/fitz/harfbuzz.c
index c4a0c5f9..e2b4e834 100644
--- a/source/fitz/harfbuzz.c
+++ b/source/fitz/harfbuzz.c
@@ -64,12 +64,12 @@
static fz_context *hb_secret = NULL;
-static void set_context(fz_context *ctx)
+static void set_hb_context(fz_context *ctx)
{
hb_secret = ctx;
}
-static fz_context *get_context()
+static fz_context *get_hb_context()
{
return hb_secret;
}
@@ -78,19 +78,19 @@ void hb_lock(fz_context *ctx)
{
fz_lock(ctx, FZ_LOCK_FREETYPE);
- set_context(ctx);
+ set_hb_context(ctx);
}
void hb_unlock(fz_context *ctx)
{
- set_context(NULL);
+ set_hb_context(NULL);
fz_unlock(ctx, FZ_LOCK_FREETYPE);
}
void *hb_malloc(size_t size)
{
- fz_context *ctx = get_context();
+ fz_context *ctx = get_hb_context();
assert(ctx != NULL);
@@ -99,7 +99,7 @@ void *hb_malloc(size_t size)
void *hb_calloc(size_t n, size_t size)
{
- fz_context *ctx = get_context();
+ fz_context *ctx = get_hb_context();
assert(ctx != NULL);
@@ -108,7 +108,7 @@ void *hb_calloc(size_t n, size_t size)
void *hb_realloc(void *ptr, size_t size)
{
- fz_context *ctx = get_context();
+ fz_context *ctx = get_hb_context();
assert(ctx != NULL);
@@ -117,7 +117,7 @@ void *hb_realloc(void *ptr, size_t size)
void hb_free(void *ptr)
{
- fz_context *ctx = get_context();
+ fz_context *ctx = get_hb_context();
assert(ctx != NULL);