cairo 1.7.0-x86-mswin32 → 1.8.0-x86-mswin32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- data/ChangeLog +32 -0
- data/NEWS +9 -1
- data/README +1 -0
- data/Rakefile +2 -2
- data/cairo/DLL_FAQ.txt +397 -0
- data/cairo/README.txt +53 -0
- data/cairo/USAGE.txt +94 -0
- data/cairo/bin/libcairo-2.dll +0 -0
- data/cairo/bin/libpng12-0.dll +0 -0
- data/cairo/bin/zlib1.dll +0 -0
- data/cairo/include/cairo/cairo-deprecated.h +0 -4
- data/cairo/include/cairo/cairo-features.h +7 -22
- data/cairo/include/cairo/cairo-pdf.h +1 -1
- data/cairo/include/cairo/cairo-ps.h +1 -1
- data/cairo/include/cairo/cairo-svg.h +1 -1
- data/cairo/include/cairo/cairo-version.h +8 -0
- data/cairo/include/cairo/cairo-win32.h +9 -1
- data/cairo/include/cairo/cairo.h +420 -32
- data/cairo/include/libpng12/png.h +3592 -0
- data/cairo/include/libpng12/pngconf.h +1481 -0
- data/cairo/include/png.h +36 -13
- data/cairo/include/pngconf.h +3 -3
- data/cairo/include/zconf.h +332 -0
- data/cairo/include/zlib.h +1357 -0
- data/cairo/lib/cairo.def +22 -0
- data/cairo/lib/cairo.lib +0 -0
- data/cairo/lib/libcairo.dll.a +0 -0
- data/cairo/lib/libpng.def +1 -0
- data/cairo/lib/libpng.lib +0 -0
- data/cairo/lib/libpng12.dll.a +0 -0
- data/cairo/lib/pkgconfig/cairo-pdf.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-png.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-ps.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-svg.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32-font.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32.pc +4 -4
- data/cairo/lib/pkgconfig/cairo.pc +4 -4
- data/cairo/lib/pkgconfig/libpng.pc +3 -2
- data/cairo/lib/pkgconfig/libpng12.pc +3 -2
- data/cairo/lib/zdll.exp +0 -0
- data/cairo/lib/zdll.lib +0 -0
- data/cairo/lib/zlib.def +60 -0
- data/cairo/manifest/cairo-dev_1.8.0-1_win32.mft +76 -0
- data/cairo/manifest/cairo_1.8.0-1_win32.mft +5 -0
- data/cairo/manifest/{libpng-dev-1.2.29.mft → libpng-dev_1.2.32-1_win32.mft} +5 -2
- data/cairo/manifest/libpng_1.2.32-1_win32.mft +2 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-LGPL-2.1 +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-MPL-1.1 +0 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +20 -16
- data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +16 -12
- data/cairo/share/gtk-doc/html/cairo/bindings-path.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +25 -21
- data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +14 -10
- data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +19 -15
- data/cairo/share/gtk-doc/html/cairo/cairo-context.html +2721 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-error-status.html +361 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-face.html +418 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-options.html +695 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-ft-font.html +318 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-image-surface.html +486 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-cairo-matrix-t.html → cairo-matrix.html} +137 -156
- data/cairo/share/gtk-doc/html/cairo/{cairo-Paths.html → cairo-paths.html} +275 -306
- data/cairo/share/gtk-doc/html/cairo/cairo-pattern.html +1524 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PDF-Surfaces.html → cairo-pdf-surface.html} +60 -70
- data/cairo/share/gtk-doc/html/cairo/cairo-png-functions.html +332 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PostScript-Surfaces.html → cairo-ps-surface.html} +131 -150
- data/cairo/share/gtk-doc/html/cairo/cairo-quartz-font.html +153 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Quartz-Surfaces.html → cairo-quartz-surface.html} +53 -62
- data/cairo/share/gtk-doc/html/cairo/cairo-scaled-font.html +1051 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-support.html +54 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surface.html +1064 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-svg-surface.html +324 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-text.html +1264 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Transformations.html → cairo-transformations.html} +98 -115
- data/cairo/share/gtk-doc/html/cairo/cairo-types.html +134 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-user-font.html +769 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-version-info.html +355 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-font.html +366 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-surface.html +321 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-XLib-Surfaces.html → cairo-xlib-surface.html} +104 -121
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +390 -405
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +390 -405
- data/cairo/share/gtk-doc/html/cairo/index-1.2.html +63 -59
- data/cairo/share/gtk-doc/html/cairo/index-1.4.html +45 -41
- data/cairo/share/gtk-doc/html/cairo/index-1.6.html +29 -23
- data/cairo/share/gtk-doc/html/cairo/index-1.8.html +107 -0
- data/cairo/share/gtk-doc/html/cairo/index-all.html +759 -0
- data/cairo/share/gtk-doc/html/cairo/index.html +51 -41
- data/cairo/share/gtk-doc/html/cairo/index.sgml +478 -466
- data/cairo/share/gtk-doc/html/cairo/language-bindings.html +22 -18
- data/cairo/share/gtk-doc/html/cairo/style.css +14 -2
- data/cairo/share/man/man3/libpng.3 +443 -17
- data/cairo/share/man/man3/libpngpf.3 +618 -102
- data/cairo/share/man/man5/png.5 +1 -1
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.log +1021 -0
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.sh +68 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.log +269 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.sh +63 -0
- data/cairo/test/example_d.exe +0 -0
- data/cairo/test/minigzip_d.exe +0 -0
- data/cairo/test/testzlib_d.exe +0 -0
- data/cairo/test/untgz_d.exe +0 -0
- data/doc/en/cairo-context.html +81 -91
- data/doc/en/cairo-font-options.html +11 -26
- data/doc/en/cairo-text-cluster-flag.html +35 -0
- data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +3 -3
- data/doc/en/cairo.html +38 -42
- data/doc/en/index.html +129 -142
- data/doc/ja/cairo-font-options.html +3 -25
- data/doc/ja/cairo-text-cluster-flag.html +46 -0
- data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +16 -15
- data/doc/ja/cairo.html +3 -7
- data/doc/ja/index.html +9 -17
- data/src/cairo.def +1 -1
- data/src/cairo.so +0 -0
- data/src/lib/cairo/constants.rb +3 -1
- data/src/libruby-cairo.a +0 -0
- data/src/rb_cairo.c +2 -2
- data/src/rb_cairo.h +5 -5
- data/src/rb_cairo_constants.c +12 -19
- data/src/rb_cairo_context.c +25 -21
- data/src/rb_cairo_font_face.c +44 -29
- data/src/rb_cairo_font_options.c +1 -23
- data/src/rb_cairo_scaled_font.c +5 -5
- data/test/test_constants.rb +6 -9
- data/test/test_context.rb +0 -12
- data/test/test_font_face.rb +7 -7
- data/test/test_font_options.rb +2 -21
- data/test/test_scaled_font.rb +3 -3
- data/test/test_text_to_glyphs_data.rb +19 -15
- metadata +68 -45
- data/cairo/make/cairo-1.6.4-2.sh +0 -55
- data/cairo/make/libpng-1.2.29.sh +0 -35
- data/cairo/manifest/cairo-1.6.4-2.mft +0 -6
- data/cairo/manifest/cairo-dev-1.6.4-2.mft +0 -72
- data/cairo/manifest/libpng-1.2.29.mft +0 -2
- data/cairo/share/gtk-doc/html/cairo/Drawing.html +0 -53
- data/cairo/share/gtk-doc/html/cairo/Fonts.html +0 -56
- data/cairo/share/gtk-doc/html/cairo/Support.html +0 -50
- data/cairo/share/gtk-doc/html/cairo/Surfaces.html +0 -65
- data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +0 -328
- data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +0 -720
- data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +0 -297
- data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +0 -484
- data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +0 -345
- data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +0 -1560
- data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +0 -161
- data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +0 -337
- data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +0 -823
- data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +0 -836
- data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +0 -143
- data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +0 -325
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +0 -381
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +0 -331
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +0 -427
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +0 -995
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +0 -2795
- data/cairo/share/gtk-doc/html/cairo/ix01.html +0 -693
- data/doc/en/cairo-lcd-filter.html +0 -39
- data/doc/ja/cairo-lcd-filter.html +0 -63
data/cairo/include/png.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* png.h - header file for PNG reference library
|
2
2
|
*
|
3
|
-
* libpng version 1.2.
|
3
|
+
* libpng version 1.2.32 - September 18, 2008
|
4
4
|
* Copyright (c) 1998-2008 Glenn Randers-Pehrson
|
5
5
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
6
6
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
@@ -8,7 +8,7 @@
|
|
8
8
|
* Authors and maintainers:
|
9
9
|
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
10
10
|
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
11
|
-
* libpng versions 0.97, January 1998, through 1.2.
|
11
|
+
* libpng versions 0.97, January 1998, through 1.2.32 - September 18, 2008: Glenn
|
12
12
|
* See also "Contributing Authors", below.
|
13
13
|
*
|
14
14
|
* Note about libpng version numbers:
|
@@ -192,6 +192,21 @@
|
|
192
192
|
* 1.2.29rc01 13 10229 12.so.0.29[.0]
|
193
193
|
* 1.0.35 10 10035 10.so.0.35[.0]
|
194
194
|
* 1.2.29 13 10229 12.so.0.29[.0]
|
195
|
+
* 1.0.37 10 10037 10.so.0.37[.0]
|
196
|
+
* 1.2.30beta01-04 13 10230 12.so.0.30[.0]
|
197
|
+
* 1.0.38rc01-08 10 10038 10.so.0.38[.0]
|
198
|
+
* 1.2.30rc01-08 13 10230 12.so.0.30[.0]
|
199
|
+
* 1.0.38 10 10038 10.so.0.38[.0]
|
200
|
+
* 1.2.30 13 10230 12.so.0.30[.0]
|
201
|
+
* 1.0.39rc01-03 10 10039 10.so.0.39[.0]
|
202
|
+
* 1.2.31rc01-03 13 10231 12.so.0.31[.0]
|
203
|
+
* 1.0.39 10 10039 10.so.0.39[.0]
|
204
|
+
* 1.2.31 13 10231 12.so.0.31[.0]
|
205
|
+
* 1.2.32beta01-02 13 10232 12.so.0.32[.0]
|
206
|
+
* 1.0.40rc01 10 10040 10.so.0.40[.0]
|
207
|
+
* 1.2.32rc01 13 10232 12.so.0.32[.0]
|
208
|
+
* 1.0.40 10 10040 10.so.0.40[.0]
|
209
|
+
* 1.2.32 13 10232 12.so.0.32[.0]
|
195
210
|
*
|
196
211
|
* Henceforth the source version will match the shared-library major
|
197
212
|
* and minor numbers; the shared-library major version number will be
|
@@ -221,7 +236,7 @@
|
|
221
236
|
* If you modify libpng you may insert additional notices immediately following
|
222
237
|
* this sentence.
|
223
238
|
*
|
224
|
-
* libpng versions 1.2.6, August 15, 2004, through 1.2.
|
239
|
+
* libpng versions 1.2.6, August 15, 2004, through 1.2.32, September 18, 2008, are
|
225
240
|
* Copyright (c) 2004, 2006-2008 Glenn Randers-Pehrson, and are
|
226
241
|
* distributed according to the same disclaimer and license as libpng-1.2.5
|
227
242
|
* with the following individual added to the list of Contributing Authors:
|
@@ -333,13 +348,13 @@
|
|
333
348
|
* Y2K compliance in libpng:
|
334
349
|
* =========================
|
335
350
|
*
|
336
|
-
*
|
351
|
+
* September 18, 2008
|
337
352
|
*
|
338
353
|
* Since the PNG Development group is an ad-hoc body, we can't make
|
339
354
|
* an official declaration.
|
340
355
|
*
|
341
356
|
* This is your unofficial assurance that libpng from version 0.71 and
|
342
|
-
* upward through 1.2.
|
357
|
+
* upward through 1.2.32 are Y2K compliant. It is my belief that earlier
|
343
358
|
* versions were also Y2K compliant.
|
344
359
|
*
|
345
360
|
* Libpng only has three year fields. One is a 2-byte unsigned integer
|
@@ -395,9 +410,9 @@
|
|
395
410
|
*/
|
396
411
|
|
397
412
|
/* Version information for png.h - this should match the version in png.c */
|
398
|
-
#define PNG_LIBPNG_VER_STRING "1.2.
|
413
|
+
#define PNG_LIBPNG_VER_STRING "1.2.32"
|
399
414
|
#define PNG_HEADER_VERSION_STRING \
|
400
|
-
" libpng version 1.2.
|
415
|
+
" libpng version 1.2.32 - September 18, 2008\n"
|
401
416
|
|
402
417
|
#define PNG_LIBPNG_VER_SONUM 0
|
403
418
|
#define PNG_LIBPNG_VER_DLLNUM 13
|
@@ -405,7 +420,7 @@
|
|
405
420
|
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
406
421
|
#define PNG_LIBPNG_VER_MAJOR 1
|
407
422
|
#define PNG_LIBPNG_VER_MINOR 2
|
408
|
-
#define PNG_LIBPNG_VER_RELEASE
|
423
|
+
#define PNG_LIBPNG_VER_RELEASE 32
|
409
424
|
/* This should match the numeric part of the final component of
|
410
425
|
* PNG_LIBPNG_VER_STRING, omitting any leading zero: */
|
411
426
|
|
@@ -433,7 +448,7 @@
|
|
433
448
|
* Versions 0.7 through 1.0.0 were in the range 0 to 100 here (only
|
434
449
|
* version 1.0.0 was mis-numbered 100 instead of 10000). From
|
435
450
|
* version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release */
|
436
|
-
#define PNG_LIBPNG_VER
|
451
|
+
#define PNG_LIBPNG_VER 10232 /* 1.2.32 */
|
437
452
|
|
438
453
|
#ifndef PNG_VERSION_INFO_ONLY
|
439
454
|
/* include the compression library's header */
|
@@ -1204,7 +1219,7 @@ struct png_struct_def
|
|
1204
1219
|
png_uint_32 row_number; /* current row in interlace pass */
|
1205
1220
|
png_bytep prev_row; /* buffer to save previous (unfiltered) row */
|
1206
1221
|
png_bytep row_buf; /* buffer to save current (unfiltered) row */
|
1207
|
-
#ifndef
|
1222
|
+
#ifndef PNG_NO_WRITE_FILTER
|
1208
1223
|
png_bytep sub_row; /* buffer to save "sub" row when filtering */
|
1209
1224
|
png_bytep up_row; /* buffer to save "up" row when filtering */
|
1210
1225
|
png_bytep avg_row; /* buffer to save "avg" row when filtering */
|
@@ -1444,13 +1459,17 @@ struct png_struct_def
|
|
1444
1459
|
|
1445
1460
|
/* New members added in libpng-1.2.26 */
|
1446
1461
|
png_uint_32 old_big_row_buf_size, old_prev_row_size;
|
1462
|
+
|
1463
|
+
/* New member added in libpng-1.2.30 */
|
1464
|
+
png_charp chunkdata; /* buffer for reading chunk data */
|
1465
|
+
|
1447
1466
|
};
|
1448
1467
|
|
1449
1468
|
|
1450
1469
|
/* This triggers a compiler error in png.c, if png.c and png.h
|
1451
1470
|
* do not agree upon the version number.
|
1452
1471
|
*/
|
1453
|
-
typedef png_structp
|
1472
|
+
typedef png_structp version_1_2_32;
|
1454
1473
|
|
1455
1474
|
typedef png_struct FAR * FAR * png_structpp;
|
1456
1475
|
|
@@ -2645,6 +2664,7 @@ extern PNG_EXPORT(png_uint_32,png_get_user_height_max) PNGARG((png_structp
|
|
2645
2664
|
png_ptr));
|
2646
2665
|
#endif
|
2647
2666
|
|
2667
|
+
|
2648
2668
|
/* Maintainer: Put new public prototypes here ^, in libpng.3, and project defs */
|
2649
2669
|
|
2650
2670
|
#ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED
|
@@ -3026,8 +3046,8 @@ PNG_EXTERN void png_crc_read PNGARG((png_structp png_ptr, png_bytep buf,
|
|
3026
3046
|
/* Decompress data in a chunk that uses compression */
|
3027
3047
|
#if defined(PNG_zTXt_SUPPORTED) || defined(PNG_iTXt_SUPPORTED) || \
|
3028
3048
|
defined(PNG_iCCP_SUPPORTED) || defined(PNG_sPLT_SUPPORTED)
|
3029
|
-
PNG_EXTERN
|
3030
|
-
int comp_type,
|
3049
|
+
PNG_EXTERN void png_decompress_chunk PNGARG((png_structp png_ptr,
|
3050
|
+
int comp_type, png_size_t chunklength,
|
3031
3051
|
png_size_t prefix_length, png_size_t *data_length));
|
3032
3052
|
#endif
|
3033
3053
|
|
@@ -3556,6 +3576,9 @@ png_infop info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type));
|
|
3556
3576
|
#endif /* PNG_pHYs_SUPPORTED */
|
3557
3577
|
#endif /* PNG_INCH_CONVERSIONS && PNG_FLOATING_POINT_SUPPORTED */
|
3558
3578
|
|
3579
|
+
/* Read the chunk header (length + type name) */
|
3580
|
+
PNG_EXTERN png_uint_32 png_read_chunk_header PNGARG((png_structp png_ptr));
|
3581
|
+
|
3559
3582
|
/* Maintainer: Put new private prototypes here ^ and in libpngpf.3 */
|
3560
3583
|
|
3561
3584
|
#endif /* PNG_INTERNAL */
|
data/cairo/include/pngconf.h
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
/* pngconf.h - machine configurable file for libpng
|
3
3
|
*
|
4
|
-
* libpng version 1.2.
|
4
|
+
* libpng version 1.2.32 - September 18, 2008
|
5
5
|
* For conditions of distribution and use, see copyright notice in png.h
|
6
6
|
* Copyright (c) 1998-2008 Glenn Randers-Pehrson
|
7
7
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
@@ -1123,10 +1123,10 @@ typedef unsigned char png_byte;
|
|
1123
1123
|
change (I'm not sure if you will or not, so I thought I'd be safe) */
|
1124
1124
|
#ifdef PNG_SIZE_T
|
1125
1125
|
typedef PNG_SIZE_T png_size_t;
|
1126
|
-
# define png_sizeof(x) png_convert_size(sizeof
|
1126
|
+
# define png_sizeof(x) png_convert_size(sizeof(x))
|
1127
1127
|
#else
|
1128
1128
|
typedef size_t png_size_t;
|
1129
|
-
# define png_sizeof(x) sizeof
|
1129
|
+
# define png_sizeof(x) sizeof(x)
|
1130
1130
|
#endif
|
1131
1131
|
|
1132
1132
|
/* The following is needed for medium model support. It cannot be in the
|
@@ -0,0 +1,332 @@
|
|
1
|
+
/* zconf.h -- configuration of the zlib compression library
|
2
|
+
* Copyright (C) 1995-2005 Jean-loup Gailly.
|
3
|
+
* For conditions of distribution and use, see copyright notice in zlib.h
|
4
|
+
*/
|
5
|
+
|
6
|
+
/* @(#) $Id$ */
|
7
|
+
|
8
|
+
#ifndef ZCONF_H
|
9
|
+
#define ZCONF_H
|
10
|
+
|
11
|
+
/*
|
12
|
+
* If you *really* need a unique prefix for all types and library functions,
|
13
|
+
* compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
|
14
|
+
*/
|
15
|
+
#ifdef Z_PREFIX
|
16
|
+
# define deflateInit_ z_deflateInit_
|
17
|
+
# define deflate z_deflate
|
18
|
+
# define deflateEnd z_deflateEnd
|
19
|
+
# define inflateInit_ z_inflateInit_
|
20
|
+
# define inflate z_inflate
|
21
|
+
# define inflateEnd z_inflateEnd
|
22
|
+
# define deflateInit2_ z_deflateInit2_
|
23
|
+
# define deflateSetDictionary z_deflateSetDictionary
|
24
|
+
# define deflateCopy z_deflateCopy
|
25
|
+
# define deflateReset z_deflateReset
|
26
|
+
# define deflateParams z_deflateParams
|
27
|
+
# define deflateBound z_deflateBound
|
28
|
+
# define deflatePrime z_deflatePrime
|
29
|
+
# define inflateInit2_ z_inflateInit2_
|
30
|
+
# define inflateSetDictionary z_inflateSetDictionary
|
31
|
+
# define inflateSync z_inflateSync
|
32
|
+
# define inflateSyncPoint z_inflateSyncPoint
|
33
|
+
# define inflateCopy z_inflateCopy
|
34
|
+
# define inflateReset z_inflateReset
|
35
|
+
# define inflateBack z_inflateBack
|
36
|
+
# define inflateBackEnd z_inflateBackEnd
|
37
|
+
# define compress z_compress
|
38
|
+
# define compress2 z_compress2
|
39
|
+
# define compressBound z_compressBound
|
40
|
+
# define uncompress z_uncompress
|
41
|
+
# define adler32 z_adler32
|
42
|
+
# define crc32 z_crc32
|
43
|
+
# define get_crc_table z_get_crc_table
|
44
|
+
# define zError z_zError
|
45
|
+
|
46
|
+
# define alloc_func z_alloc_func
|
47
|
+
# define free_func z_free_func
|
48
|
+
# define in_func z_in_func
|
49
|
+
# define out_func z_out_func
|
50
|
+
# define Byte z_Byte
|
51
|
+
# define uInt z_uInt
|
52
|
+
# define uLong z_uLong
|
53
|
+
# define Bytef z_Bytef
|
54
|
+
# define charf z_charf
|
55
|
+
# define intf z_intf
|
56
|
+
# define uIntf z_uIntf
|
57
|
+
# define uLongf z_uLongf
|
58
|
+
# define voidpf z_voidpf
|
59
|
+
# define voidp z_voidp
|
60
|
+
#endif
|
61
|
+
|
62
|
+
#if defined(__MSDOS__) && !defined(MSDOS)
|
63
|
+
# define MSDOS
|
64
|
+
#endif
|
65
|
+
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
|
66
|
+
# define OS2
|
67
|
+
#endif
|
68
|
+
#if defined(_WINDOWS) && !defined(WINDOWS)
|
69
|
+
# define WINDOWS
|
70
|
+
#endif
|
71
|
+
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
|
72
|
+
# ifndef WIN32
|
73
|
+
# define WIN32
|
74
|
+
# endif
|
75
|
+
#endif
|
76
|
+
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
|
77
|
+
# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
|
78
|
+
# ifndef SYS16BIT
|
79
|
+
# define SYS16BIT
|
80
|
+
# endif
|
81
|
+
# endif
|
82
|
+
#endif
|
83
|
+
|
84
|
+
/*
|
85
|
+
* Compile with -DMAXSEG_64K if the alloc function cannot allocate more
|
86
|
+
* than 64k bytes at a time (needed on systems with 16-bit int).
|
87
|
+
*/
|
88
|
+
#ifdef SYS16BIT
|
89
|
+
# define MAXSEG_64K
|
90
|
+
#endif
|
91
|
+
#ifdef MSDOS
|
92
|
+
# define UNALIGNED_OK
|
93
|
+
#endif
|
94
|
+
|
95
|
+
#ifdef __STDC_VERSION__
|
96
|
+
# ifndef STDC
|
97
|
+
# define STDC
|
98
|
+
# endif
|
99
|
+
# if __STDC_VERSION__ >= 199901L
|
100
|
+
# ifndef STDC99
|
101
|
+
# define STDC99
|
102
|
+
# endif
|
103
|
+
# endif
|
104
|
+
#endif
|
105
|
+
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
|
106
|
+
# define STDC
|
107
|
+
#endif
|
108
|
+
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
|
109
|
+
# define STDC
|
110
|
+
#endif
|
111
|
+
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
|
112
|
+
# define STDC
|
113
|
+
#endif
|
114
|
+
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
|
115
|
+
# define STDC
|
116
|
+
#endif
|
117
|
+
|
118
|
+
#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
|
119
|
+
# define STDC
|
120
|
+
#endif
|
121
|
+
|
122
|
+
#ifndef STDC
|
123
|
+
# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
|
124
|
+
# define const /* note: need a more gentle solution here */
|
125
|
+
# endif
|
126
|
+
#endif
|
127
|
+
|
128
|
+
/* Some Mac compilers merge all .h files incorrectly: */
|
129
|
+
#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
|
130
|
+
# define NO_DUMMY_DECL
|
131
|
+
#endif
|
132
|
+
|
133
|
+
/* Maximum value for memLevel in deflateInit2 */
|
134
|
+
#ifndef MAX_MEM_LEVEL
|
135
|
+
# ifdef MAXSEG_64K
|
136
|
+
# define MAX_MEM_LEVEL 8
|
137
|
+
# else
|
138
|
+
# define MAX_MEM_LEVEL 9
|
139
|
+
# endif
|
140
|
+
#endif
|
141
|
+
|
142
|
+
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
|
143
|
+
* WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
|
144
|
+
* created by gzip. (Files created by minigzip can still be extracted by
|
145
|
+
* gzip.)
|
146
|
+
*/
|
147
|
+
#ifndef MAX_WBITS
|
148
|
+
# define MAX_WBITS 15 /* 32K LZ77 window */
|
149
|
+
#endif
|
150
|
+
|
151
|
+
/* The memory requirements for deflate are (in bytes):
|
152
|
+
(1 << (windowBits+2)) + (1 << (memLevel+9))
|
153
|
+
that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
|
154
|
+
plus a few kilobytes for small objects. For example, if you want to reduce
|
155
|
+
the default memory requirements from 256K to 128K, compile with
|
156
|
+
make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
|
157
|
+
Of course this will generally degrade compression (there's no free lunch).
|
158
|
+
|
159
|
+
The memory requirements for inflate are (in bytes) 1 << windowBits
|
160
|
+
that is, 32K for windowBits=15 (default value) plus a few kilobytes
|
161
|
+
for small objects.
|
162
|
+
*/
|
163
|
+
|
164
|
+
/* Type declarations */
|
165
|
+
|
166
|
+
#ifndef OF /* function prototypes */
|
167
|
+
# ifdef STDC
|
168
|
+
# define OF(args) args
|
169
|
+
# else
|
170
|
+
# define OF(args) ()
|
171
|
+
# endif
|
172
|
+
#endif
|
173
|
+
|
174
|
+
/* The following definitions for FAR are needed only for MSDOS mixed
|
175
|
+
* model programming (small or medium model with some far allocations).
|
176
|
+
* This was tested only with MSC; for other MSDOS compilers you may have
|
177
|
+
* to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
|
178
|
+
* just define FAR to be empty.
|
179
|
+
*/
|
180
|
+
#ifdef SYS16BIT
|
181
|
+
# if defined(M_I86SM) || defined(M_I86MM)
|
182
|
+
/* MSC small or medium model */
|
183
|
+
# define SMALL_MEDIUM
|
184
|
+
# ifdef _MSC_VER
|
185
|
+
# define FAR _far
|
186
|
+
# else
|
187
|
+
# define FAR far
|
188
|
+
# endif
|
189
|
+
# endif
|
190
|
+
# if (defined(__SMALL__) || defined(__MEDIUM__))
|
191
|
+
/* Turbo C small or medium model */
|
192
|
+
# define SMALL_MEDIUM
|
193
|
+
# ifdef __BORLANDC__
|
194
|
+
# define FAR _far
|
195
|
+
# else
|
196
|
+
# define FAR far
|
197
|
+
# endif
|
198
|
+
# endif
|
199
|
+
#endif
|
200
|
+
|
201
|
+
#if defined(WINDOWS) || defined(WIN32)
|
202
|
+
/* If building or using zlib as a DLL, define ZLIB_DLL.
|
203
|
+
* This is not mandatory, but it offers a little performance increase.
|
204
|
+
*/
|
205
|
+
# ifdef ZLIB_DLL
|
206
|
+
# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
|
207
|
+
# ifdef ZLIB_INTERNAL
|
208
|
+
# define ZEXTERN extern __declspec(dllexport)
|
209
|
+
# else
|
210
|
+
# define ZEXTERN extern __declspec(dllimport)
|
211
|
+
# endif
|
212
|
+
# endif
|
213
|
+
# endif /* ZLIB_DLL */
|
214
|
+
/* If building or using zlib with the WINAPI/WINAPIV calling convention,
|
215
|
+
* define ZLIB_WINAPI.
|
216
|
+
* Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
|
217
|
+
*/
|
218
|
+
# ifdef ZLIB_WINAPI
|
219
|
+
# ifdef FAR
|
220
|
+
# undef FAR
|
221
|
+
# endif
|
222
|
+
# include <windows.h>
|
223
|
+
/* No need for _export, use ZLIB.DEF instead. */
|
224
|
+
/* For complete Windows compatibility, use WINAPI, not __stdcall. */
|
225
|
+
# define ZEXPORT WINAPI
|
226
|
+
# ifdef WIN32
|
227
|
+
# define ZEXPORTVA WINAPIV
|
228
|
+
# else
|
229
|
+
# define ZEXPORTVA FAR CDECL
|
230
|
+
# endif
|
231
|
+
# endif
|
232
|
+
#endif
|
233
|
+
|
234
|
+
#if defined (__BEOS__)
|
235
|
+
# ifdef ZLIB_DLL
|
236
|
+
# ifdef ZLIB_INTERNAL
|
237
|
+
# define ZEXPORT __declspec(dllexport)
|
238
|
+
# define ZEXPORTVA __declspec(dllexport)
|
239
|
+
# else
|
240
|
+
# define ZEXPORT __declspec(dllimport)
|
241
|
+
# define ZEXPORTVA __declspec(dllimport)
|
242
|
+
# endif
|
243
|
+
# endif
|
244
|
+
#endif
|
245
|
+
|
246
|
+
#ifndef ZEXTERN
|
247
|
+
# define ZEXTERN extern
|
248
|
+
#endif
|
249
|
+
#ifndef ZEXPORT
|
250
|
+
# define ZEXPORT
|
251
|
+
#endif
|
252
|
+
#ifndef ZEXPORTVA
|
253
|
+
# define ZEXPORTVA
|
254
|
+
#endif
|
255
|
+
|
256
|
+
#ifndef FAR
|
257
|
+
# define FAR
|
258
|
+
#endif
|
259
|
+
|
260
|
+
#if !defined(__MACTYPES__)
|
261
|
+
typedef unsigned char Byte; /* 8 bits */
|
262
|
+
#endif
|
263
|
+
typedef unsigned int uInt; /* 16 bits or more */
|
264
|
+
typedef unsigned long uLong; /* 32 bits or more */
|
265
|
+
|
266
|
+
#ifdef SMALL_MEDIUM
|
267
|
+
/* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
|
268
|
+
# define Bytef Byte FAR
|
269
|
+
#else
|
270
|
+
typedef Byte FAR Bytef;
|
271
|
+
#endif
|
272
|
+
typedef char FAR charf;
|
273
|
+
typedef int FAR intf;
|
274
|
+
typedef uInt FAR uIntf;
|
275
|
+
typedef uLong FAR uLongf;
|
276
|
+
|
277
|
+
#ifdef STDC
|
278
|
+
typedef void const *voidpc;
|
279
|
+
typedef void FAR *voidpf;
|
280
|
+
typedef void *voidp;
|
281
|
+
#else
|
282
|
+
typedef Byte const *voidpc;
|
283
|
+
typedef Byte FAR *voidpf;
|
284
|
+
typedef Byte *voidp;
|
285
|
+
#endif
|
286
|
+
|
287
|
+
#if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */
|
288
|
+
# include <sys/types.h> /* for off_t */
|
289
|
+
# include <unistd.h> /* for SEEK_* and off_t */
|
290
|
+
# ifdef VMS
|
291
|
+
# include <unixio.h> /* for off_t */
|
292
|
+
# endif
|
293
|
+
# define z_off_t off_t
|
294
|
+
#endif
|
295
|
+
#ifndef SEEK_SET
|
296
|
+
# define SEEK_SET 0 /* Seek from beginning of file. */
|
297
|
+
# define SEEK_CUR 1 /* Seek from current position. */
|
298
|
+
# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
|
299
|
+
#endif
|
300
|
+
#ifndef z_off_t
|
301
|
+
# define z_off_t long
|
302
|
+
#endif
|
303
|
+
|
304
|
+
#if defined(__OS400__)
|
305
|
+
# define NO_vsnprintf
|
306
|
+
#endif
|
307
|
+
|
308
|
+
#if defined(__MVS__)
|
309
|
+
# define NO_vsnprintf
|
310
|
+
# ifdef FAR
|
311
|
+
# undef FAR
|
312
|
+
# endif
|
313
|
+
#endif
|
314
|
+
|
315
|
+
/* MVS linker does not support external names larger than 8 bytes */
|
316
|
+
#if defined(__MVS__)
|
317
|
+
# pragma map(deflateInit_,"DEIN")
|
318
|
+
# pragma map(deflateInit2_,"DEIN2")
|
319
|
+
# pragma map(deflateEnd,"DEEND")
|
320
|
+
# pragma map(deflateBound,"DEBND")
|
321
|
+
# pragma map(inflateInit_,"ININ")
|
322
|
+
# pragma map(inflateInit2_,"ININ2")
|
323
|
+
# pragma map(inflateEnd,"INEND")
|
324
|
+
# pragma map(inflateSync,"INSY")
|
325
|
+
# pragma map(inflateSetDictionary,"INSEDI")
|
326
|
+
# pragma map(compressBound,"CMBND")
|
327
|
+
# pragma map(inflate_table,"INTABL")
|
328
|
+
# pragma map(inflate_fast,"INFA")
|
329
|
+
# pragma map(inflate_copyright,"INCOPY")
|
330
|
+
#endif
|
331
|
+
|
332
|
+
#endif /* ZCONF_H */
|