X-Git-Url: http://git.imager.perl.org/imager.git/blobdiff_plain/fc02e37644c6c30506d7718c1fd5f2ab9225cadf..e1c0692925:/imageri.h?ds=sidebyside diff --git a/imageri.h b/imageri.h index 6ef28a7a..14d1d23c 100644 --- a/imageri.h +++ b/imageri.h @@ -118,8 +118,14 @@ typedef struct im_context_tag { size_t error_alloc[IM_ERROR_COUNT]; i_errmsg error_stack[IM_ERROR_COUNT]; #ifdef IMAGER_LOG - int log_level; + /* the log file and level for this context */ FILE *lg_file; + int log_level; + + /* whether we own the lg_file, false for stderr and for cloned contexts */ + int own_log; + + /* values supplied by lhead */ const char *filename; int line; #endif @@ -137,4 +143,6 @@ typedef struct im_context_tag { #define DEF_BYTES_LIMIT 0x40000000 +#define im_size_t_max (~(size_t)0) + #endif