From cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 12 Mar 2017 11:19:09 -0500 Subject: Rename fz_putc/puts/printf to fz_write_*. Rename fz_write to fz_write_data. Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*. Be consistent in naming: fz_write_* calls write to fz_output. fz_append_* calls append to fz_buffer. Update documentation. --- source/fitz/store.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/fitz/store.c') diff --git a/source/fitz/store.c b/source/fitz/store.c index 620bf0ea..70f25029 100644 --- a/source/fitz/store.c +++ b/source/fitz/store.c @@ -677,7 +677,7 @@ static void print_item(fz_context *ctx, fz_output *out, void *item_) { fz_item *item = (fz_item *)item_; - fz_printf(ctx, out, " val=%p item=%p\n", item->val, item); + fz_write_printf(ctx, out, " val=%p item=%p\n", item->val, item); } void @@ -686,24 +686,24 @@ fz_print_store_locked(fz_context *ctx, fz_output *out) fz_item *item, *next; fz_store *store = ctx->store; - fz_printf(ctx, out, "-- resource store contents --\n"); + fz_write_printf(ctx, out, "-- resource store contents --\n"); for (item = store->head; item; item = next) { next = item->next; if (next) next->val->refs++; - fz_printf(ctx, out, "store[*][refs=%d][size=%d] ", item->val->refs, item->size); + fz_write_printf(ctx, out, "store[*][refs=%d][size=%d] ", item->val->refs, item->size); fz_unlock(ctx, FZ_LOCK_ALLOC); item->type->print(ctx, out, item->key); - fz_printf(ctx, out, " = %p\n", item->val); + fz_write_printf(ctx, out, " = %p\n", item->val); fz_lock(ctx, FZ_LOCK_ALLOC); if (next) next->val->refs--; } - fz_printf(ctx, out, "-- resource store hash contents --\n"); + fz_write_printf(ctx, out, "-- resource store hash contents --\n"); fz_print_hash_details(ctx, out, store->hash, print_item, 1); - fz_printf(ctx, out, "-- end --\n"); + fz_write_printf(ctx, out, "-- end --\n"); } void -- cgit v1.2.3