diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-05-10 17:05:54 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-05-11 09:33:06 +0100 |
commit | b6d377080747ed63f2742bcd9c32bc67255626a1 (patch) | |
tree | 1abfea68f4ea1b2bd2196f5907ca0b83accaf0a5 /tiff/man/libtiff.3tiff | |
parent | 73c17cef9cc0be38219f533a98e35e0d693c3821 (diff) | |
download | ghostpdl-b6d377080747ed63f2742bcd9c32bc67255626a1.tar.gz |
Update libtiff to 4.3.0
Changes to libtiff for gpdl.
1) Ensure that libtiff doesn't mess with 'boolean' in GS builds
on Windows. Without this, the jpeg structures used by our JPEG
lib build are different in size when called from gs and libtiff,
resulting in runtime errors.
2) Update libtiff so that it can correctly call into the jpeg
library so that memory operations happen from our pools, not
malloc/free. Slightly horrid in that this is more complex with
OJPEG than JPEG files.
Fix some compiler warnings stemming from libtiff update
Various tweaks for libtiff 4.3.0 to build on Windows
Mainly "importing" tif_config.vc.h and tiffconf.vc.h - the tiff build now
created those with cmake.
Then typedef'ing several C99 ***_t style types.
Finally defining matching C99 PRI* printf formatting macros
Diffstat (limited to 'tiff/man/libtiff.3tiff')
-rw-r--r-- | tiff/man/libtiff.3tiff | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tiff/man/libtiff.3tiff b/tiff/man/libtiff.3tiff index 8e9ff35b7..1f646789a 100644 --- a/tiff/man/libtiff.3tiff +++ b/tiff/man/libtiff.3tiff @@ -93,20 +93,20 @@ The following typedefs are exposed to users either through function definitions or through parameters passed through the varargs interfaces. .in +.5i .sp 5p -.ta +\w'typedef unsigned <\fIthing\fP> uint32; 'u +.ta +\w'typedef unsigned <\fIthing\fP> uint32_t; 'u .nf -typedef unsigned short uint16; 16-bit unsigned integer -typedef unsigned <\fIthing\fP> uint32; 32-bit unsigned integer +typedef unsigned short uint16_t; 16-bit unsigned integer +typedef unsigned <\fIthing\fP> uint32_t; 32-bit unsigned integer .sp 5p typedef unsigned int ttag_t; directory tag -typedef uint16 tdir_t; directory index -typedef uint16 tsample_t; sample number -typedef uint32 tstrip_t; strip number -typedef uint32 ttile_t; tile number -typedef int32 tsize_t; i/o size in bytes +typedef uint16_t tdir_t; directory index +typedef uint16_t tsample_t; sample number +typedef uint32_t tstrip_t; strip number +typedef uint32_t ttile_t; tile number +typedef int32_t tsize_t; i/o size in bytes typedef void* tdata_t; image data ref typedef void* thandle_t; client data handle -typedef int32 toff_t; file offset +typedef int32_t toff_t; file offset .fi .sp 5p .in -.5i @@ -134,7 +134,7 @@ a varargs interface and .SM "ANSI C" restricts the type of the parameter before an ellipsis to be a promoted type. .I toff_t -is defined as int32 because TIFF file offsets are (unsigned) 32-bit +is defined as int32_t because TIFF file offsets are (unsigned) 32-bit quantities. A signed value is used because some interfaces return \-1 on error. Finally, note that user-specified data references are passed as opaque handles and only cast at the lowest layers where their type is presumed. |