cairo 1.15.13-x86-mingw32 → 1.15.14-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +24 -0
  3. data/README.rdoc +11 -40
  4. data/Rakefile +4 -2
  5. data/ext/cairo/rb_cairo.h +1 -1
  6. data/ext/cairo/rb_cairo_context.c +35 -3
  7. data/ext/cairo/rb_cairo_font_options.c +5 -6
  8. data/ext/cairo/rb_cairo_private.h +2 -2
  9. data/ext/cairo/rb_cairo_scaled_font.c +11 -2
  10. data/ext/cairo/rb_cairo_surface.c +89 -48
  11. data/lib/2.2/cairo.so +0 -0
  12. data/lib/2.3/cairo.so +0 -0
  13. data/lib/2.4/cairo.so +0 -0
  14. data/lib/2.5/cairo.so +0 -0
  15. data/test/{cairo-test-utils.rb → helper.rb} +4 -5
  16. data/test/run-test.rb +3 -10
  17. data/test/test_context.rb +6 -6
  18. data/test/test_font_extents.rb +1 -1
  19. data/test/test_font_face.rb +1 -1
  20. data/test/test_font_options.rb +1 -1
  21. data/test/test_image_surface.rb +2 -2
  22. data/test/test_pdf_surface.rb +1 -1
  23. data/test/test_quartz_image_surface.rb +1 -1
  24. data/test/test_raster_source_pattern.rb +13 -13
  25. data/test/test_recording_surface.rb +2 -2
  26. data/test/test_region.rb +1 -1
  27. data/test/test_scaled_font.rb +1 -1
  28. data/test/test_script_device.rb +1 -1
  29. data/test/test_script_surface.rb +1 -1
  30. data/test/test_surface.rb +5 -5
  31. data/test/test_svg_surface.rb +1 -1
  32. data/test/test_tee_surface.rb +2 -2
  33. data/test/test_text_cluster.rb +1 -1
  34. data/test/test_text_extents.rb +1 -1
  35. data/test/test_text_to_glyphs_data.rb +1 -1
  36. data/test/test_xml_device.rb +1 -1
  37. data/test/test_xml_surface.rb +2 -2
  38. data/vendor/local/bin/fc-cache.exe +0 -0
  39. data/vendor/local/bin/fc-cat.exe +0 -0
  40. data/vendor/local/bin/fc-conflist.exe +0 -0
  41. data/vendor/local/bin/fc-list.exe +0 -0
  42. data/vendor/local/bin/fc-match.exe +0 -0
  43. data/vendor/local/bin/fc-pattern.exe +0 -0
  44. data/vendor/local/bin/fc-query.exe +0 -0
  45. data/vendor/local/bin/fc-scan.exe +0 -0
  46. data/vendor/local/bin/fc-validate.exe +0 -0
  47. data/vendor/local/bin/libcairo-2.dll +0 -0
  48. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  49. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  50. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  51. data/vendor/local/bin/libfreetype-6.dll +0 -0
  52. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  53. data/vendor/local/bin/libpng-config +1 -1
  54. data/vendor/local/bin/libpng16-16.dll +0 -0
  55. data/vendor/local/bin/libpng16-config +1 -1
  56. data/vendor/local/bin/libxml2-2.dll +0 -0
  57. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  58. data/vendor/local/bin/pngfix.exe +0 -0
  59. data/vendor/local/bin/xmlcatalog.exe +0 -0
  60. data/vendor/local/bin/xmllint.exe +0 -0
  61. data/vendor/local/bin/zlib1211.dll +0 -0
  62. data/vendor/local/include/freetype2/freetype/config/ftconfig.h +82 -3
  63. data/vendor/local/include/freetype2/freetype/config/ftheader.h +43 -85
  64. data/vendor/local/include/freetype2/freetype/config/ftoption.h +43 -56
  65. data/vendor/local/include/freetype2/freetype/config/ftstdlib.h +1 -1
  66. data/vendor/local/include/freetype2/freetype/freetype.h +185 -85
  67. data/vendor/local/include/freetype2/freetype/ftadvanc.h +1 -1
  68. data/vendor/local/include/freetype2/freetype/ftbbox.h +2 -2
  69. data/vendor/local/include/freetype2/freetype/ftbdf.h +1 -1
  70. data/vendor/local/include/freetype2/freetype/ftbitmap.h +2 -2
  71. data/vendor/local/include/freetype2/freetype/ftbzip2.h +1 -1
  72. data/vendor/local/include/freetype2/freetype/ftcache.h +1 -16
  73. data/vendor/local/include/freetype2/freetype/ftchapters.h +3 -0
  74. data/vendor/local/include/freetype2/freetype/ftcid.h +2 -2
  75. data/vendor/local/include/freetype2/freetype/ftdriver.h +1225 -0
  76. data/vendor/local/include/freetype2/freetype/fterrdef.h +1 -1
  77. data/vendor/local/include/freetype2/freetype/fterrors.h +1 -1
  78. data/vendor/local/include/freetype2/freetype/ftfntfmt.h +1 -1
  79. data/vendor/local/include/freetype2/freetype/ftgasp.h +6 -1
  80. data/vendor/local/include/freetype2/freetype/ftglyph.h +3 -3
  81. data/vendor/local/include/freetype2/freetype/ftgxval.h +5 -5
  82. data/vendor/local/include/freetype2/freetype/ftgzip.h +4 -1
  83. data/vendor/local/include/freetype2/freetype/ftimage.h +18 -18
  84. data/vendor/local/include/freetype2/freetype/ftincrem.h +2 -13
  85. data/vendor/local/include/freetype2/freetype/ftlcdfil.h +5 -18
  86. data/vendor/local/include/freetype2/freetype/ftlist.h +1 -1
  87. data/vendor/local/include/freetype2/freetype/ftlzw.h +1 -1
  88. data/vendor/local/include/freetype2/freetype/ftmac.h +1 -1
  89. data/vendor/local/include/freetype2/freetype/ftmm.h +99 -11
  90. data/vendor/local/include/freetype2/freetype/ftmodapi.h +12 -11
  91. data/vendor/local/include/freetype2/freetype/ftmoderr.h +1 -1
  92. data/vendor/local/include/freetype2/freetype/ftotval.h +1 -1
  93. data/vendor/local/include/freetype2/freetype/ftoutln.h +4 -7
  94. data/vendor/local/include/freetype2/freetype/ftparams.h +205 -0
  95. data/vendor/local/include/freetype2/freetype/ftpfr.h +4 -4
  96. data/vendor/local/include/freetype2/freetype/ftrender.h +2 -2
  97. data/vendor/local/include/freetype2/freetype/ftsizes.h +1 -1
  98. data/vendor/local/include/freetype2/freetype/ftsnames.h +8 -42
  99. data/vendor/local/include/freetype2/freetype/ftstroke.h +6 -6
  100. data/vendor/local/include/freetype2/freetype/ftsynth.h +1 -1
  101. data/vendor/local/include/freetype2/freetype/ftsystem.h +1 -1
  102. data/vendor/local/include/freetype2/freetype/fttrigon.h +1 -1
  103. data/vendor/local/include/freetype2/freetype/fttypes.h +2 -2
  104. data/vendor/local/include/freetype2/freetype/ftwinfnt.h +2 -2
  105. data/vendor/local/include/freetype2/freetype/t1tables.h +10 -1
  106. data/vendor/local/include/freetype2/freetype/ttnameid.h +2 -2
  107. data/vendor/local/include/freetype2/freetype/tttables.h +1 -1
  108. data/vendor/local/include/freetype2/freetype/tttags.h +1 -1
  109. data/vendor/local/include/freetype2/ft2build.h +1 -1
  110. data/vendor/local/include/libpng16/png.h +40 -40
  111. data/vendor/local/include/libpng16/pngconf.h +15 -14
  112. data/vendor/local/include/libpng16/pnglibconf.h +1 -1
  113. data/vendor/local/include/png.h +40 -40
  114. data/vendor/local/include/pngconf.h +15 -14
  115. data/vendor/local/include/pnglibconf.h +1 -1
  116. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  117. data/vendor/local/lib/libcairo-gobject.la +1 -1
  118. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  119. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  120. data/vendor/local/lib/libcairo.a +0 -0
  121. data/vendor/local/lib/libcairo.dll.a +0 -0
  122. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  123. data/vendor/local/lib/libfreetype.a +0 -0
  124. data/vendor/local/lib/libfreetype.dll.a +0 -0
  125. data/vendor/local/lib/libfreetype.la +3 -3
  126. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  127. data/vendor/local/lib/libpng.a +0 -0
  128. data/vendor/local/lib/libpng.dll.a +0 -0
  129. data/vendor/local/lib/libpng.la +2 -2
  130. data/vendor/local/lib/libpng16.a +0 -0
  131. data/vendor/local/lib/libpng16.dll.a +0 -0
  132. data/vendor/local/lib/libpng16.la +2 -2
  133. data/vendor/local/lib/libxml2.dll.a +0 -0
  134. data/vendor/local/lib/libz.dll.a +0 -0
  135. data/vendor/local/lib/pkgconfig/freetype2.pc +2 -2
  136. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  137. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  138. data/vendor/local/share/aclocal/freetype2.m4 +1 -1
  139. data/vendor/local/share/license/freetype/README +9 -9
  140. data/vendor/local/share/license/freetype/README.git +1 -1
  141. data/vendor/local/share/license/libpng/README +2 -2
  142. data/vendor/local/share/man/man3/libpng.3 +50 -54
  143. data/vendor/local/share/man/man3/libpngpf.3 +8 -4
  144. metadata +9 -14
  145. data/vendor/local/bin/freetype-config +0 -211
  146. data/vendor/local/include/freetype2/freetype/ftautoh.h +0 -533
  147. data/vendor/local/include/freetype2/freetype/ftcffdrv.h +0 -321
  148. data/vendor/local/include/freetype2/freetype/ftpcfdrv.h +0 -105
  149. data/vendor/local/include/freetype2/freetype/ftttdrv.h +0 -328
  150. data/vendor/local/include/freetype2/freetype/ttunpat.h +0 -63
  151. data/vendor/local/share/man/man1/freetype-config.1 +0 -146
@@ -1,9 +1,9 @@
1
1
 
2
2
  /* pngconf.h - machine configurable file for libpng
3
3
  *
4
- * libpng version 1.6.34, September 29, 2017
4
+ * libpng version 1.6.35, July 15, 2018
5
5
  *
6
- * Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson
6
+ * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
7
7
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
8
  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
9
  *
@@ -127,7 +127,7 @@
127
127
  *
128
128
  * These cases only differ if the operating system does not use the C
129
129
  * calling convention, at present this just means the above cases
130
- * (x86 DOS/Windows sytems) and, even then, this does not apply to
130
+ * (x86 DOS/Windows systems) and, even then, this does not apply to
131
131
  * Cygwin running on those systems.
132
132
  *
133
133
  * Note that the value must be defined in pnglibconf.h so that what
@@ -515,8 +515,10 @@
515
515
  # error "libpng requires an unsigned 32-bit (or more) type"
516
516
  #endif
517
517
 
518
- /* Prior to 1.6.0 it was possible to disable the use of size_t, 1.6.0, however,
519
- * requires an ISOC90 compiler and relies on consistent behavior of sizeof.
518
+ /* Prior to 1.6.0, it was possible to disable the use of size_t and ptrdiff_t.
519
+ * From 1.6.0 onwards, an ISO C90 compiler, as well as a standard-compliant
520
+ * behavior of sizeof and ptrdiff_t are required.
521
+ * The legacy typedefs are provided here for backwards compatibility.
520
522
  */
521
523
  typedef size_t png_size_t;
522
524
  typedef ptrdiff_t png_ptrdiff_t;
@@ -537,13 +539,12 @@ typedef ptrdiff_t png_ptrdiff_t;
537
539
  # endif
538
540
  #endif
539
541
 
540
- /* png_alloc_size_t is guaranteed to be no smaller than png_size_t, and no
541
- * smaller than png_uint_32. Casts from png_size_t or png_uint_32 to
542
- * png_alloc_size_t are not necessary; in fact, it is recommended not to use
543
- * them at all so that the compiler can complain when something turns out to be
544
- * problematic.
542
+ /* png_alloc_size_t is guaranteed to be no smaller than size_t, and no smaller
543
+ * than png_uint_32. Casts from size_t or png_uint_32 to png_alloc_size_t are
544
+ * not necessary; in fact, it is recommended not to use them at all, so that
545
+ * the compiler can complain when something turns out to be problematic.
545
546
  *
546
- * Casts in the other direction (from png_alloc_size_t to png_size_t or
547
+ * Casts in the other direction (from png_alloc_size_t to size_t or
547
548
  * png_uint_32) should be explicitly applied; however, we do not expect to
548
549
  * encounter practical situations that require such conversions.
549
550
  *
@@ -553,7 +554,7 @@ typedef ptrdiff_t png_ptrdiff_t;
553
554
  #ifdef PNG_SMALL_SIZE_T
554
555
  typedef png_uint_32 png_alloc_size_t;
555
556
  #else
556
- typedef png_size_t png_alloc_size_t;
557
+ typedef size_t png_alloc_size_t;
557
558
  #endif
558
559
 
559
560
  /* Prior to 1.6.0 libpng offered limited support for Microsoft C compiler
@@ -589,8 +590,8 @@ typedef char * png_charp;
589
590
  typedef const char * png_const_charp;
590
591
  typedef png_fixed_point * png_fixed_point_p;
591
592
  typedef const png_fixed_point * png_const_fixed_point_p;
592
- typedef png_size_t * png_size_tp;
593
- typedef const png_size_t * png_const_size_tp;
593
+ typedef size_t * png_size_tp;
594
+ typedef const size_t * png_const_size_tp;
594
595
 
595
596
  #ifdef PNG_STDIO_SUPPORTED
596
597
  typedef FILE * png_FILE_p;
@@ -1,6 +1,6 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.34, September 29, 2017 */
3
+ /* libpng version 1.6.35, July 15, 2018 */
4
4
 
5
5
  /* Copyright (c) 1998-2017 Glenn Randers-Pehrson */
6
6
 
@@ -1,9 +1,9 @@
1
1
 
2
2
  /* png.h - header file for PNG reference library
3
3
  *
4
- * libpng version 1.6.34, September 29, 2017
4
+ * libpng version 1.6.35, July 15, 2018
5
5
  *
6
- * Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson
6
+ * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
7
7
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
8
  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
9
  *
@@ -12,7 +12,7 @@
12
12
  * Authors and maintainers:
13
13
  * libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
14
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
15
- * libpng versions 0.97, January 1998, through 1.6.34, September 29, 2017:
15
+ * libpng versions 0.97, January 1998, through 1.6.35, July 15, 2018:
16
16
  * Glenn Randers-Pehrson.
17
17
  * See also "Contributing Authors", below.
18
18
  */
@@ -25,8 +25,8 @@
25
25
  *
26
26
  * This code is released under the libpng license.
27
27
  *
28
- * libpng versions 1.0.7, July 1, 2000 through 1.6.34, September 29, 2017 are
29
- * Copyright (c) 2000-2002, 2004, 2006-2017 Glenn Randers-Pehrson, are
28
+ * libpng versions 1.0.7, July 1, 2000 through 1.6.35, July 15, 2018 are
29
+ * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are
30
30
  * derived from libpng-1.0.6, and are distributed according to the same
31
31
  * disclaimer and license as libpng-1.0.6 with the following individuals
32
32
  * added to the list of Contributing Authors:
@@ -213,7 +213,7 @@
213
213
  * ...
214
214
  * 1.5.30 15 10527 15.so.15.30[.0]
215
215
  * ...
216
- * 1.6.34 16 10633 16.so.16.34[.0]
216
+ * 1.6.35 16 10635 16.so.16.35[.0]
217
217
  *
218
218
  * Henceforth the source version will match the shared-library major
219
219
  * and minor numbers; the shared-library major version number will be
@@ -241,13 +241,13 @@
241
241
  * Y2K compliance in libpng:
242
242
  * =========================
243
243
  *
244
- * September 29, 2017
244
+ * July 15, 2018
245
245
  *
246
246
  * Since the PNG Development group is an ad-hoc body, we can't make
247
247
  * an official declaration.
248
248
  *
249
249
  * This is your unofficial assurance that libpng from version 0.71 and
250
- * upward through 1.6.34 are Y2K compliant. It is my belief that
250
+ * upward through 1.6.35 are Y2K compliant. It is my belief that
251
251
  * earlier versions were also Y2K compliant.
252
252
  *
253
253
  * Libpng only has two year fields. One is a 2-byte unsigned integer
@@ -309,8 +309,8 @@
309
309
  */
310
310
 
311
311
  /* Version information for png.h - this should match the version in png.c */
312
- #define PNG_LIBPNG_VER_STRING "1.6.34"
313
- #define PNG_HEADER_VERSION_STRING " libpng version 1.6.34 - September 29, 2017\n"
312
+ #define PNG_LIBPNG_VER_STRING "1.6.35"
313
+ #define PNG_HEADER_VERSION_STRING " libpng version 1.6.35 - July 15, 2018\n"
314
314
 
315
315
  #define PNG_LIBPNG_VER_SONUM 16
316
316
  #define PNG_LIBPNG_VER_DLLNUM 16
@@ -318,13 +318,13 @@
318
318
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
319
319
  #define PNG_LIBPNG_VER_MAJOR 1
320
320
  #define PNG_LIBPNG_VER_MINOR 6
321
- #define PNG_LIBPNG_VER_RELEASE 34
321
+ #define PNG_LIBPNG_VER_RELEASE 35
322
322
 
323
323
  /* This should match the numeric part of the final component of
324
324
  * PNG_LIBPNG_VER_STRING, omitting any leading zero:
325
325
  */
326
326
 
327
- #define PNG_LIBPNG_VER_BUILD 0
327
+ #define PNG_LIBPNG_VER_BUILD 02
328
328
 
329
329
  /* Release Status */
330
330
  #define PNG_LIBPNG_BUILD_ALPHA 1
@@ -341,7 +341,7 @@
341
341
  #define PNG_LIBPNG_BUILD_SPECIAL 32 /* Cannot be OR'ed with
342
342
  PNG_LIBPNG_BUILD_PRIVATE */
343
343
 
344
- #define PNG_LIBPNG_BUILD_BASE_TYPE PNG_LIBPNG_BUILD_STABLE
344
+ #define PNG_LIBPNG_BUILD_BASE_TYPE PNG_LIBPNG_BUILD_BETA
345
345
 
346
346
  /* Careful here. At one time, Guy wanted to use 082, but that would be octal.
347
347
  * We must not include leading zeros.
@@ -349,7 +349,7 @@
349
349
  * version 1.0.0 was mis-numbered 100 instead of 10000). From
350
350
  * version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release
351
351
  */
352
- #define PNG_LIBPNG_VER 10634 /* 1.6.34 */
352
+ #define PNG_LIBPNG_VER 10635 /* 1.6.35 */
353
353
 
354
354
  /* Library configuration: these options cannot be changed after
355
355
  * the library has been built.
@@ -459,7 +459,7 @@ extern "C" {
459
459
  /* This triggers a compiler error in png.c, if png.c and png.h
460
460
  * do not agree upon the version number.
461
461
  */
462
- typedef char* png_libpng_version_1_6_34;
462
+ typedef char* png_libpng_version_1_6_35;
463
463
 
464
464
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
465
465
  *
@@ -600,8 +600,8 @@ typedef struct png_text_struct
600
600
  png_charp key; /* keyword, 1-79 character description of "text" */
601
601
  png_charp text; /* comment, may be an empty string (ie "")
602
602
  or a NULL pointer */
603
- png_size_t text_length; /* length of the text string */
604
- png_size_t itxt_length; /* length of the itxt string */
603
+ size_t text_length; /* length of the text string */
604
+ size_t itxt_length; /* length of the itxt string */
605
605
  png_charp lang; /* language code, 0-79 characters
606
606
  or a NULL pointer */
607
607
  png_charp lang_key; /* keyword translated UTF-8 string, 0 or more
@@ -654,7 +654,7 @@ typedef struct png_unknown_chunk_t
654
654
  {
655
655
  png_byte name[5]; /* Textual chunk name with '\0' terminator */
656
656
  png_byte *data; /* Data, should not be modified on read! */
657
- png_size_t size;
657
+ size_t size;
658
658
 
659
659
  /* On write 'location' must be set using the flag values listed below.
660
660
  * Notice that on read it is set by libpng however the values stored have
@@ -679,7 +679,7 @@ typedef png_unknown_chunk * * png_unknown_chunkpp;
679
679
  /* Maximum positive integer used in PNG is (2^31)-1 */
680
680
  #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL)
681
681
  #define PNG_UINT_32_MAX ((png_uint_32)(-1))
682
- #define PNG_SIZE_MAX ((png_size_t)(-1))
682
+ #define PNG_SIZE_MAX ((size_t)(-1))
683
683
 
684
684
  /* These are constants for fixed point values encoded in the
685
685
  * PNG specification manner (x100000)
@@ -785,7 +785,7 @@ typedef png_unknown_chunk * * png_unknown_chunkpp;
785
785
  typedef struct png_row_info_struct
786
786
  {
787
787
  png_uint_32 width; /* width of row */
788
- png_size_t rowbytes; /* number of bytes in row */
788
+ size_t rowbytes; /* number of bytes in row */
789
789
  png_byte color_type; /* color type of row */
790
790
  png_byte bit_depth; /* bit depth of row */
791
791
  png_byte channels; /* number of channels (1, 2, 3, or 4) */
@@ -804,7 +804,7 @@ typedef png_row_info * * png_row_infopp;
804
804
  * expected to return the read data in the buffer.
805
805
  */
806
806
  typedef PNG_CALLBACK(void, *png_error_ptr, (png_structp, png_const_charp));
807
- typedef PNG_CALLBACK(void, *png_rw_ptr, (png_structp, png_bytep, png_size_t));
807
+ typedef PNG_CALLBACK(void, *png_rw_ptr, (png_structp, png_bytep, size_t));
808
808
  typedef PNG_CALLBACK(void, *png_flush_ptr, (png_structp));
809
809
  typedef PNG_CALLBACK(void, *png_read_status_ptr, (png_structp, png_uint_32,
810
810
  int));
@@ -941,8 +941,8 @@ PNG_EXPORT(2, void, png_set_sig_bytes, (png_structrp png_ptr, int num_bytes));
941
941
  * signature, and non-zero otherwise. Having num_to_check == 0 or
942
942
  * start > 7 will always fail (ie return non-zero).
943
943
  */
944
- PNG_EXPORT(3, int, png_sig_cmp, (png_const_bytep sig, png_size_t start,
945
- png_size_t num_to_check));
944
+ PNG_EXPORT(3, int, png_sig_cmp, (png_const_bytep sig, size_t start,
945
+ size_t num_to_check));
946
946
 
947
947
  /* Simple signature checking function. This is the same as calling
948
948
  * png_check_sig(sig, n) := !png_sig_cmp(sig, 0, n).
@@ -961,11 +961,11 @@ PNG_EXPORTA(5, png_structp, png_create_write_struct,
961
961
  png_error_ptr warn_fn),
962
962
  PNG_ALLOCATED);
963
963
 
964
- PNG_EXPORT(6, png_size_t, png_get_compression_buffer_size,
964
+ PNG_EXPORT(6, size_t, png_get_compression_buffer_size,
965
965
  (png_const_structrp png_ptr));
966
966
 
967
967
  PNG_EXPORT(7, void, png_set_compression_buffer_size, (png_structrp png_ptr,
968
- png_size_t size));
968
+ size_t size));
969
969
 
970
970
  /* Moved from pngconf.h in 1.4.0 and modified to ensure setjmp/longjmp
971
971
  * match up.
@@ -1018,7 +1018,7 @@ PNG_EXPORT(13, void, png_write_sig, (png_structrp png_ptr));
1018
1018
 
1019
1019
  /* Write a PNG chunk - size, type, (optional) data, CRC. */
1020
1020
  PNG_EXPORT(14, void, png_write_chunk, (png_structrp png_ptr, png_const_bytep
1021
- chunk_name, png_const_bytep data, png_size_t length));
1021
+ chunk_name, png_const_bytep data, size_t length));
1022
1022
 
1023
1023
  /* Write the start of a PNG chunk - length and chunk name. */
1024
1024
  PNG_EXPORT(15, void, png_write_chunk_start, (png_structrp png_ptr,
@@ -1026,7 +1026,7 @@ PNG_EXPORT(15, void, png_write_chunk_start, (png_structrp png_ptr,
1026
1026
 
1027
1027
  /* Write the data of a PNG chunk started with png_write_chunk_start(). */
1028
1028
  PNG_EXPORT(16, void, png_write_chunk_data, (png_structrp png_ptr,
1029
- png_const_bytep data, png_size_t length));
1029
+ png_const_bytep data, size_t length));
1030
1030
 
1031
1031
  /* Finish a chunk started with png_write_chunk_start() (includes CRC). */
1032
1032
  PNG_EXPORT(17, void, png_write_chunk_end, (png_structrp png_ptr));
@@ -1040,7 +1040,7 @@ PNG_EXPORTA(18, png_infop, png_create_info_struct, (png_const_structrp png_ptr),
1040
1040
  * the API will be removed in the future.
1041
1041
  */
1042
1042
  PNG_EXPORTA(19, void, png_info_init_3, (png_infopp info_ptr,
1043
- png_size_t png_info_struct_size), PNG_DEPRECATED);
1043
+ size_t png_info_struct_size), PNG_DEPRECATED);
1044
1044
 
1045
1045
  /* Writes all the PNG information before the image. */
1046
1046
  PNG_EXPORT(20, void, png_write_info_before_PLTE,
@@ -1137,7 +1137,7 @@ PNG_EXPORT(35, void, png_build_grayscale_palette, (int bit_depth,
1137
1137
  * corresponding composited pixel, and the color channels are unassociated
1138
1138
  * (not premultiplied). The gamma encoded color channels must be scaled
1139
1139
  * according to the contribution and to do this it is necessary to undo
1140
- * the encoding, scale the color values, perform the composition and reencode
1140
+ * the encoding, scale the color values, perform the composition and re-encode
1141
1141
  * the values. This is the 'PNG' mode.
1142
1142
  *
1143
1143
  * The alternative is to 'associate' the alpha with the color information by
@@ -1193,7 +1193,7 @@ PNG_FIXED_EXPORT(228, void, png_set_alpha_mode_fixed, (png_structrp png_ptr,
1193
1193
  *
1194
1194
  * png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
1195
1195
  * In this case the output is assumed to be something like an sRGB conformant
1196
- * display preceeded by a power-law lookup table of power 1.45. This is how
1196
+ * display preceded by a power-law lookup table of power 1.45. This is how
1197
1197
  * early Mac systems behaved.
1198
1198
  *
1199
1199
  * png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_GAMMA_LINEAR);
@@ -1240,7 +1240,7 @@ PNG_FIXED_EXPORT(228, void, png_set_alpha_mode_fixed, (png_structrp png_ptr,
1240
1240
  *
1241
1241
  * When the default gamma of PNG files doesn't match the output gamma.
1242
1242
  * If you have PNG files with no gamma information png_set_alpha_mode allows
1243
- * you to provide a default gamma, but it also sets the ouput gamma to the
1243
+ * you to provide a default gamma, but it also sets the output gamma to the
1244
1244
  * matching value. If you know your PNG files have a gamma that doesn't
1245
1245
  * match the output you can take advantage of the fact that
1246
1246
  * png_set_alpha_mode always sets the output gamma but only sets the PNG
@@ -1691,7 +1691,7 @@ PNG_EXPORT(218, png_byte, png_get_current_pass_number, (png_const_structrp));
1691
1691
  * chunk will cause an error at this point unless it is to be saved.
1692
1692
  * positive: The chunk was handled, libpng will ignore/discard it.
1693
1693
  *
1694
- * See "INTERACTION WTIH USER CHUNK CALLBACKS" below for important notes about
1694
+ * See "INTERACTION WITH USER CHUNK CALLBACKS" below for important notes about
1695
1695
  * how this behavior will change in libpng 1.7
1696
1696
  */
1697
1697
  PNG_EXPORT(88, void, png_set_read_user_chunk_fn, (png_structrp png_ptr,
@@ -1716,7 +1716,7 @@ PNG_EXPORT(91, png_voidp, png_get_progressive_ptr,
1716
1716
 
1717
1717
  /* Function to be called when data becomes available */
1718
1718
  PNG_EXPORT(92, void, png_process_data, (png_structrp png_ptr,
1719
- png_inforp info_ptr, png_bytep buffer, png_size_t buffer_size));
1719
+ png_inforp info_ptr, png_bytep buffer, size_t buffer_size));
1720
1720
 
1721
1721
  /* A function which may be called *only* within png_process_data to stop the
1722
1722
  * processing of any more data. The function returns the number of bytes
@@ -1725,7 +1725,7 @@ PNG_EXPORT(92, void, png_process_data, (png_structrp png_ptr,
1725
1725
  * 'save' is set to true the routine will first save all the pending data and
1726
1726
  * will always return 0.
1727
1727
  */
1728
- PNG_EXPORT(219, png_size_t, png_process_data_pause, (png_structrp, int save));
1728
+ PNG_EXPORT(219, size_t, png_process_data_pause, (png_structrp, int save));
1729
1729
 
1730
1730
  /* A function which may be called *only* outside (after) a call to
1731
1731
  * png_process_data. It returns the number of bytes of data to skip in the
@@ -1870,7 +1870,7 @@ PNG_EXPORT(110, png_uint_32, png_get_valid, (png_const_structrp png_ptr,
1870
1870
  png_const_inforp info_ptr, png_uint_32 flag));
1871
1871
 
1872
1872
  /* Returns number of bytes needed to hold a transformed row. */
1873
- PNG_EXPORT(111, png_size_t, png_get_rowbytes, (png_const_structrp png_ptr,
1873
+ PNG_EXPORT(111, size_t, png_get_rowbytes, (png_const_structrp png_ptr,
1874
1874
  png_const_inforp info_ptr));
1875
1875
 
1876
1876
  #ifdef PNG_INFO_IMAGE_SUPPORTED
@@ -2239,7 +2239,7 @@ PNG_EXPORT(171, void, png_set_sCAL_s, (png_const_structrp png_ptr,
2239
2239
  * to specifying "NEVER", however when "AS_DEFAULT" is used for specific chunks
2240
2240
  * it simply resets the behavior to the libpng default.
2241
2241
  *
2242
- * INTERACTION WTIH USER CHUNK CALLBACKS:
2242
+ * INTERACTION WITH USER CHUNK CALLBACKS:
2243
2243
  * The per-chunk handling is always used when there is a png_user_chunk_ptr
2244
2244
  * callback and the callback returns 0; the chunk is then always stored *unless*
2245
2245
  * it is critical and the per-chunk setting is other than ALWAYS. Notice that
@@ -2658,7 +2658,7 @@ PNG_EXPORT(243, int, png_get_palette_max, (png_const_structp png_ptr,
2658
2658
  * The simplified API hides the details of both libpng and the PNG file format
2659
2659
  * itself. It allows PNG files to be read into a very limited number of
2660
2660
  * in-memory bitmap formats or to be written from the same formats. If these
2661
- * formats do not accomodate your needs then you can, and should, use the more
2661
+ * formats do not accommodate your needs then you can, and should, use the more
2662
2662
  * sophisticated APIs above - these support a wide variety of in-memory formats
2663
2663
  * and a wide variety of sophisticated transformations to those formats as well
2664
2664
  * as a wide variety of APIs to manipulate ancillary information.
@@ -3020,7 +3020,7 @@ PNG_EXPORT(235, int, png_image_begin_read_from_stdio, (png_imagep image,
3020
3020
  #endif /* STDIO */
3021
3021
 
3022
3022
  PNG_EXPORT(236, int, png_image_begin_read_from_memory, (png_imagep image,
3023
- png_const_voidp memory, png_size_t size));
3023
+ png_const_voidp memory, size_t size));
3024
3024
  /* The PNG header is read from the given memory buffer. */
3025
3025
 
3026
3026
  PNG_EXPORT(237, int, png_image_finish_read, (png_imagep image,
@@ -3133,7 +3133,7 @@ PNG_EXPORT(245, int, png_image_write_to_memory, (png_imagep image, void *memory,
3133
3133
  * than or equal to the original value.
3134
3134
  *
3135
3135
  * If the function returns false and *memory_bytes was not changed an error
3136
- * occured during write. If *memory_bytes was changed, or is not 0 if
3136
+ * occurred during write. If *memory_bytes was changed, or is not 0 if
3137
3137
  * 'memory' was NULL, the write would have succeeded but for the memory
3138
3138
  * buffer being too small. *memory_bytes contains the required number of
3139
3139
  * bytes and will be bigger that the original value.
@@ -3217,7 +3217,7 @@ PNG_EXPORT(245, int, png_image_write_to_memory, (png_imagep image, void *memory,
3217
3217
  * option and 'onoff' is 0 (off) or non-0 (on). The value returned is given
3218
3218
  * by the PNG_OPTION_ defines below.
3219
3219
  *
3220
- * HARDWARE: normally hardware capabilites, such as the Intel SSE instructions,
3220
+ * HARDWARE: normally hardware capabilities, such as the Intel SSE instructions,
3221
3221
  * are detected at run time, however sometimes it may be impossible
3222
3222
  * to do this in user mode, in which case it is necessary to discover
3223
3223
  * the capabilities in an OS specific way. Such capabilities are
@@ -1,9 +1,9 @@
1
1
 
2
2
  /* pngconf.h - machine configurable file for libpng
3
3
  *
4
- * libpng version 1.6.34, September 29, 2017
4
+ * libpng version 1.6.35, July 15, 2018
5
5
  *
6
- * Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson
6
+ * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
7
7
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
8
  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
9
  *
@@ -127,7 +127,7 @@
127
127
  *
128
128
  * These cases only differ if the operating system does not use the C
129
129
  * calling convention, at present this just means the above cases
130
- * (x86 DOS/Windows sytems) and, even then, this does not apply to
130
+ * (x86 DOS/Windows systems) and, even then, this does not apply to
131
131
  * Cygwin running on those systems.
132
132
  *
133
133
  * Note that the value must be defined in pnglibconf.h so that what
@@ -515,8 +515,10 @@
515
515
  # error "libpng requires an unsigned 32-bit (or more) type"
516
516
  #endif
517
517
 
518
- /* Prior to 1.6.0 it was possible to disable the use of size_t, 1.6.0, however,
519
- * requires an ISOC90 compiler and relies on consistent behavior of sizeof.
518
+ /* Prior to 1.6.0, it was possible to disable the use of size_t and ptrdiff_t.
519
+ * From 1.6.0 onwards, an ISO C90 compiler, as well as a standard-compliant
520
+ * behavior of sizeof and ptrdiff_t are required.
521
+ * The legacy typedefs are provided here for backwards compatibility.
520
522
  */
521
523
  typedef size_t png_size_t;
522
524
  typedef ptrdiff_t png_ptrdiff_t;
@@ -537,13 +539,12 @@ typedef ptrdiff_t png_ptrdiff_t;
537
539
  # endif
538
540
  #endif
539
541
 
540
- /* png_alloc_size_t is guaranteed to be no smaller than png_size_t, and no
541
- * smaller than png_uint_32. Casts from png_size_t or png_uint_32 to
542
- * png_alloc_size_t are not necessary; in fact, it is recommended not to use
543
- * them at all so that the compiler can complain when something turns out to be
544
- * problematic.
542
+ /* png_alloc_size_t is guaranteed to be no smaller than size_t, and no smaller
543
+ * than png_uint_32. Casts from size_t or png_uint_32 to png_alloc_size_t are
544
+ * not necessary; in fact, it is recommended not to use them at all, so that
545
+ * the compiler can complain when something turns out to be problematic.
545
546
  *
546
- * Casts in the other direction (from png_alloc_size_t to png_size_t or
547
+ * Casts in the other direction (from png_alloc_size_t to size_t or
547
548
  * png_uint_32) should be explicitly applied; however, we do not expect to
548
549
  * encounter practical situations that require such conversions.
549
550
  *
@@ -553,7 +554,7 @@ typedef ptrdiff_t png_ptrdiff_t;
553
554
  #ifdef PNG_SMALL_SIZE_T
554
555
  typedef png_uint_32 png_alloc_size_t;
555
556
  #else
556
- typedef png_size_t png_alloc_size_t;
557
+ typedef size_t png_alloc_size_t;
557
558
  #endif
558
559
 
559
560
  /* Prior to 1.6.0 libpng offered limited support for Microsoft C compiler
@@ -589,8 +590,8 @@ typedef char * png_charp;
589
590
  typedef const char * png_const_charp;
590
591
  typedef png_fixed_point * png_fixed_point_p;
591
592
  typedef const png_fixed_point * png_const_fixed_point_p;
592
- typedef png_size_t * png_size_tp;
593
- typedef const png_size_t * png_const_size_tp;
593
+ typedef size_t * png_size_tp;
594
+ typedef const size_t * png_const_size_tp;
594
595
 
595
596
  #ifdef PNG_STDIO_SUPPORTED
596
597
  typedef FILE * png_FILE_p;