diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-12 11:19:09 -0500 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-22 12:07:26 +0100 |
commit | cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (patch) | |
tree | 8d8d06c9e2c880611a3c8cc025d8c35fe38d59ba /source/tools/muraster.c | |
parent | 3832d0c7ab87aa1f2b3a3dbebe43a37e4055d121 (diff) | |
download | mupdf-cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c.tar.xz |
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.
Diffstat (limited to 'source/tools/muraster.c')
-rw-r--r-- | source/tools/muraster.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/tools/muraster.c b/source/tools/muraster.c index 468bb212..78fd18fa 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -253,6 +253,8 @@ static const suffix_t suffix_table[] = #endif }; +#ifndef DISABLE_MUTHREADS + static mu_mutex mutexes[FZ_LOCK_MAX]; static void muraster_lock(void *user, int lock) @@ -295,6 +297,8 @@ static fz_locks_context *init_muraster_locks(void) return &muraster_locks; } +#endif + #ifdef MURASTER_CONFIG_RENDER_THREADS #define NUM_RENDER_THREADS MURASTER_CONFIG_RENDER_THREADS #elif defined(DISABLE_MUTHREADS) @@ -1384,7 +1388,7 @@ int main(int argc, char **argv) { char *password = ""; fz_document *doc = NULL; - int i, c; + int c; fz_context *ctx; fz_alloc_context alloc_ctx = { NULL, trace_malloc, trace_realloc, trace_free }; fz_locks_context *locks = NULL; |