cairo 1.12.9-x86-mingw32 → 1.14.0-x86-mingw32

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.

Files changed (317) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +27 -0
  3. data/README.rdoc +7 -7
  4. data/Rakefile +72 -23
  5. data/ext/cairo/extconf.rb +3 -3
  6. data/ext/cairo/rb_cairo.h +3 -3
  7. data/ext/cairo/rb_cairo_constants.c +8 -0
  8. data/ext/cairo/rb_cairo_context.c +63 -1
  9. data/ext/cairo/rb_cairo_exception.c +17 -0
  10. data/ext/cairo/rb_cairo_font_face.c +13 -0
  11. data/ext/cairo/rb_cairo_private.c +14 -1
  12. data/ext/cairo/rb_cairo_private.h +12 -1
  13. data/ext/cairo/rb_cairo_surface.c +47 -23
  14. data/lib/2.0/cairo.so +0 -0
  15. data/lib/2.1/cairo.so +0 -0
  16. data/lib/2.2/cairo.so +0 -0
  17. data/lib/cairo/surface.rb +3 -1
  18. data/test/cairo-test-utils.rb +5 -0
  19. data/test/test_constants.rb +11 -0
  20. data/test/test_context.rb +1 -1
  21. data/test/test_exception.rb +9 -0
  22. data/test/test_font_face.rb +1 -1
  23. data/test/test_quartz_image_surface.rb +13 -0
  24. data/test/test_surface.rb +10 -0
  25. data/vendor/local/bin/fc-cache.exe +0 -0
  26. data/vendor/local/bin/fc-cat.exe +0 -0
  27. data/vendor/local/bin/fc-list.exe +0 -0
  28. data/vendor/local/bin/fc-match.exe +0 -0
  29. data/vendor/local/bin/fc-pattern.exe +0 -0
  30. data/vendor/local/bin/fc-query.exe +0 -0
  31. data/vendor/local/bin/fc-scan.exe +0 -0
  32. data/vendor/local/bin/fc-validate.exe +0 -0
  33. data/vendor/local/bin/freetype-config +6 -6
  34. data/vendor/local/bin/libcairo-2.dll +0 -0
  35. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  36. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  37. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  38. data/vendor/local/bin/libfreetype-6.dll +0 -0
  39. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  40. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  41. data/vendor/local/bin/libpng-config +2 -2
  42. data/vendor/local/bin/libpng16-16.dll +0 -0
  43. data/vendor/local/bin/libpng16-config +2 -2
  44. data/vendor/local/bin/libstdc++-6.dll +0 -0
  45. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  46. data/vendor/local/bin/libxml2-2.dll +0 -0
  47. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  48. data/vendor/local/bin/pngfix.exe +0 -0
  49. data/vendor/local/bin/xml2-config +2 -2
  50. data/vendor/local/bin/xmlcatalog.exe +0 -0
  51. data/vendor/local/bin/xmllint.exe +0 -0
  52. data/vendor/local/bin/zlib1.dll +0 -0
  53. data/vendor/local/include/cairo/cairo-version.h +2 -2
  54. data/vendor/local/include/cairo/cairo.h +36 -0
  55. data/vendor/local/include/libpng16/png.h +38 -24
  56. data/vendor/local/include/libpng16/pngconf.h +3 -3
  57. data/vendor/local/include/libpng16/pnglibconf.h +2 -3
  58. data/vendor/local/include/libxml2/libxml/SAX2.h +4 -2
  59. data/vendor/local/include/libxml2/libxml/entities.h +3 -3
  60. data/vendor/local/include/libxml2/libxml/globals.h +12 -5
  61. data/vendor/local/include/libxml2/libxml/relaxng.h +6 -2
  62. data/vendor/local/include/libxml2/libxml/tree.h +49 -42
  63. data/vendor/local/include/libxml2/libxml/xmlIO.h +1 -1
  64. data/vendor/local/include/libxml2/libxml/xmlerror.h +1 -1
  65. data/vendor/local/include/libxml2/libxml/xmlversion.h +4 -4
  66. data/vendor/local/include/pixman-1/pixman-version.h +2 -2
  67. data/vendor/local/include/png.h +38 -24
  68. data/vendor/local/include/pngconf.h +3 -3
  69. data/vendor/local/include/pnglibconf.h +2 -3
  70. data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
  71. data/vendor/local/lib/libcairo-gobject.a +0 -0
  72. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  73. data/vendor/local/lib/libcairo-gobject.la +6 -6
  74. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  75. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  76. data/vendor/local/lib/libcairo-script-interpreter.la +6 -6
  77. data/vendor/local/lib/libcairo.a +0 -0
  78. data/vendor/local/lib/libcairo.dll.a +0 -0
  79. data/vendor/local/lib/libcairo.la +6 -6
  80. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  81. data/vendor/local/lib/libfontconfig.la +2 -2
  82. data/vendor/local/lib/libfreetype.a +0 -0
  83. data/vendor/local/lib/libfreetype.dll.a +0 -0
  84. data/vendor/local/lib/libfreetype.la +2 -2
  85. data/vendor/local/lib/libpixman-1.a +0 -0
  86. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  87. data/vendor/local/lib/libpixman-1.la +3 -3
  88. data/vendor/local/lib/libpng.a +0 -0
  89. data/vendor/local/lib/libpng.dll.a +0 -0
  90. data/vendor/local/lib/libpng.la +4 -4
  91. data/vendor/local/lib/libpng16.a +0 -0
  92. data/vendor/local/lib/libpng16.dll.a +0 -0
  93. data/vendor/local/lib/libpng16.la +4 -4
  94. data/vendor/local/lib/libxml2.a +0 -0
  95. data/vendor/local/lib/libxml2.dll.a +0 -0
  96. data/vendor/local/lib/libxml2.la +3 -3
  97. data/vendor/local/lib/libz.a +0 -0
  98. data/vendor/local/lib/libz.dll.a +0 -0
  99. data/vendor/local/lib/pkgconfig/cairo-fc.pc +2 -2
  100. data/vendor/local/lib/pkgconfig/cairo-ft.pc +2 -2
  101. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +3 -3
  102. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +2 -2
  103. data/vendor/local/lib/pkgconfig/cairo-png.pc +2 -2
  104. data/vendor/local/lib/pkgconfig/cairo-ps.pc +2 -2
  105. data/vendor/local/lib/pkgconfig/cairo-script.pc +2 -2
  106. data/vendor/local/lib/pkgconfig/cairo-svg.pc +2 -2
  107. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +2 -2
  108. data/vendor/local/lib/pkgconfig/cairo-win32.pc +2 -2
  109. data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
  110. data/vendor/local/lib/pkgconfig/fontconfig.pc +3 -3
  111. data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
  112. data/vendor/local/lib/pkgconfig/libpng.pc +2 -2
  113. data/vendor/local/lib/pkgconfig/libpng16.pc +2 -2
  114. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +3 -3
  115. data/vendor/local/lib/pkgconfig/pixman-1.pc +2 -2
  116. data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
  117. data/vendor/local/lib/xml2Conf.sh +3 -3
  118. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/Copyright +0 -0
  119. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testHTML.c +0 -0
  120. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testSAX.c +0 -0
  121. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testXPath.c +0 -0
  122. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/xmllint.c +35 -10
  123. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/DOM.gif +0 -0
  124. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/FAQ.html +34 -17
  125. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-180x168.gif +0 -0
  126. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-90x34.gif +0 -0
  127. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/encoding.html +20 -10
  128. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xml +0 -0
  129. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xsl +0 -0
  130. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/book1.html +0 -0
  131. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/home.png +0 -0
  132. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/index.html +0 -0
  133. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/left.png +0 -0
  134. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-DOCBparser.html +0 -0
  135. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLparser.html +0 -0
  136. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLtree.html +0 -0
  137. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX.html +0 -0
  138. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX2.html +0 -0
  139. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-c14n.html +0 -0
  140. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-catalog.html +0 -0
  141. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-chvalid.html +0 -0
  142. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-debugXML.html +0 -0
  143. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-dict.html +0 -0
  144. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-encoding.html +0 -0
  145. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-entities.html +4 -4
  146. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-globals.html +0 -0
  147. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-hash.html +0 -0
  148. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-lib.html +0 -0
  149. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-list.html +0 -0
  150. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanoftp.html +0 -0
  151. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanohttp.html +0 -0
  152. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parser.html +0 -0
  153. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parserInternals.html +0 -0
  154. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-pattern.html +0 -0
  155. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-relaxng.html +0 -0
  156. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schemasInternals.html +0 -0
  157. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schematron.html +0 -0
  158. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-threads.html +0 -0
  159. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-tree.html +72 -72
  160. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-uri.html +0 -0
  161. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-valid.html +0 -0
  162. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xinclude.html +0 -0
  163. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xlink.html +0 -0
  164. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlIO.html +0 -0
  165. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlautomata.html +0 -0
  166. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlerror.html +1 -1
  167. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlexports.html +0 -0
  168. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmemory.html +0 -0
  169. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmodule.html +0 -0
  170. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlreader.html +0 -0
  171. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlregexp.html +0 -0
  172. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlsave.html +0 -0
  173. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemas.html +0 -0
  174. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemastypes.html +2 -2
  175. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlstring.html +0 -0
  176. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlunicode.html +0 -0
  177. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlversion.html +0 -0
  178. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlwriter.html +0 -0
  179. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpath.html +0 -0
  180. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpathInternals.html +0 -0
  181. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpointer.html +0 -0
  182. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xzlib.html +0 -0
  183. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/right.png +0 -0
  184. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/up.png +0 -0
  185. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/index.html +0 -0
  186. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.c +0 -0
  187. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.res +0 -0
  188. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.c +0 -0
  189. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.res +0 -0
  190. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/libxml.gif +0 -0
  191. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse1.c +0 -0
  192. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse2.c +0 -0
  193. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse3.c +0 -0
  194. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse4.c +0 -0
  195. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.c +0 -0
  196. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.res +0 -0
  197. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader2.c +0 -0
  198. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.c +0 -0
  199. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.res +0 -0
  200. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.c +0 -0
  201. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.res +0 -0
  202. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/redhat.gif +0 -0
  203. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/smallfootonly.gif +0 -0
  204. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/structure.gif +0 -0
  205. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test1.xml +0 -0
  206. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test2.xml +0 -0
  207. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test3.xml +0 -0
  208. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/testWriter.c +0 -0
  209. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.c +0 -0
  210. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.res +0 -0
  211. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.c +0 -0
  212. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.res +0 -0
  213. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tst.xml +0 -0
  214. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apa.html +0 -0
  215. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apb.html +0 -0
  216. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apc.html +0 -0
  217. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apd.html +0 -0
  218. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ape.html +0 -0
  219. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apf.html +0 -0
  220. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apg.html +0 -0
  221. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/aph.html +0 -0
  222. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/api.html +0 -0
  223. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s02.html +0 -0
  224. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s03.html +0 -0
  225. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s04.html +0 -0
  226. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s05.html +0 -0
  227. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s06.html +0 -0
  228. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s07.html +0 -0
  229. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s08.html +0 -0
  230. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s09.html +0 -0
  231. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/blank.png +0 -0
  232. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/1.png +0 -0
  233. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/10.png +0 -0
  234. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/2.png +0 -0
  235. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/3.png +0 -0
  236. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/4.png +0 -0
  237. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/5.png +0 -0
  238. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/6.png +0 -0
  239. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/7.png +0 -0
  240. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/8.png +0 -0
  241. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/9.png +0 -0
  242. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/caution.png +0 -0
  243. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/draft.png +0 -0
  244. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/home.png +0 -0
  245. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/important.png +0 -0
  246. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/next.png +0 -0
  247. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/note.png +0 -0
  248. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/prev.png +0 -0
  249. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/tip.png +0 -0
  250. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-blank.png +0 -0
  251. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-minus.png +0 -0
  252. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-plus.png +0 -0
  253. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/up.png +0 -0
  254. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/warning.png +0 -0
  255. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddattribute.c +0 -0
  256. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddkeyword.c +0 -0
  257. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeconvert.c +0 -0
  258. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includegetattribute.c +0 -0
  259. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includekeyword.c +0 -0
  260. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includexpath.c +0 -0
  261. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/index.html +0 -0
  262. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ix01.html +0 -0
  263. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/xmltutorial.pdf +0 -0
  264. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/w3c.png +0 -0
  265. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/writer.xml +0 -0
  266. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xml.html +284 -4
  267. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.c +0 -0
  268. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.res +0 -0
  269. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.c +0 -0
  270. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.res +0 -0
  271. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +11 -3
  272. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +12 -29
  273. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +11 -27
  274. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +22 -3
  275. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +43 -100
  276. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +26 -51
  277. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +4 -13
  278. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +10 -23
  279. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
  280. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
  281. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +7 -17
  282. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
  283. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
  284. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
  285. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
  286. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +2 -2
  287. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
  288. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +86 -49
  289. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
  290. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
  291. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +71 -119
  292. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +72 -159
  293. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +146 -58
  294. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +22 -46
  295. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +3 -1
  296. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
  297. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +25 -0
  298. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  299. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +9 -0
  300. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +47 -0
  301. data/vendor/local/share/gtk-doc/html/cairo/index.html +4 -1
  302. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +26 -0
  303. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  304. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  305. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  306. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +4 -4
  307. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +73 -73
  308. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +1 -1
  309. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +2 -2
  310. data/vendor/local/share/license/cairo/AUTHORS +5 -1
  311. data/vendor/local/share/license/cairo/README +20 -10
  312. data/vendor/local/share/license/libpng/README +20 -7
  313. data/vendor/local/share/man/man1/xmllint.1 +2 -5
  314. data/vendor/local/share/man/man3/libpng.3 +92 -220
  315. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  316. data/vendor/local/share/man/man5/png.5 +1 -1
  317. metadata +254 -248
@@ -1,11 +1,11 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
 
6
6
  Name: cairo-svg
7
7
  Description: SVG surface backend for cairo graphics library
8
- Version: 1.12.16
8
+ Version: 1.14.0
9
9
 
10
10
  Requires: cairo
11
11
  Libs:
@@ -1,11 +1,11 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
 
6
6
  Name: cairo-win32-font
7
7
  Description: Microsoft Windows font backend for cairo graphics library
8
- Version: 1.12.16
8
+ Version: 1.14.0
9
9
 
10
10
  Requires: cairo
11
11
  Libs:
@@ -1,11 +1,11 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
 
6
6
  Name: cairo-win32
7
7
  Description: Microsoft Windows surface backend for cairo graphics library
8
- Version: 1.12.16
8
+ Version: 1.14.0
9
9
 
10
10
  Requires: cairo
11
11
  Libs:
@@ -1,13 +1,13 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
 
6
6
  Name: cairo
7
7
  Description: Multi-platform 2D graphics library
8
- Version: 1.12.16
8
+ Version: 1.14.0
9
9
 
10
- Requires.private: gobject-2.0 glib-2.0 pixman-1 >= 0.16.0 fontconfig >= 2.2.95 freetype2 >= 9.7.3 libpng
10
+ Requires.private: gobject-2.0 glib-2.0 >= 2.14 pixman-1 >= 0.30.0 fontconfig >= 2.2.95 freetype2 >= 9.7.3 libpng
11
11
  Libs: -L${libdir} -lcairo
12
12
  Libs.private: -lz -lz
13
13
  Cflags: -I${includedir}/cairo
@@ -1,4 +1,4 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
@@ -14,5 +14,5 @@ Version: 2.11.1
14
14
  Requires: freetype2
15
15
  Requires.private: libxml-2.0
16
16
  Libs: -L${libdir} -lfontconfig
17
- Libs.private: -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -lfreetype -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -lxml2
18
- Cflags: -I${includedir} -I/home/kou/work/ruby/rcairo.win32/vendor/local/include/freetype2 -I/home/kou/work/ruby/rcairo.win32/vendor/local/include -I/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng16 -I/home/kou/work/ruby/rcairo.win32/vendor/local/include/libxml2
17
+ Libs.private: -L/home/vagrant/rcairo.win32/vendor/local/lib -lfreetype -L/home/vagrant/rcairo.win32/vendor/local/lib -lxml2
18
+ Cflags: -I${includedir} -I/home/vagrant/rcairo.win32/vendor/local/include/freetype2 -I/home/vagrant/rcairo.win32/vendor/local/include -I/home/vagrant/rcairo.win32/vendor/local/include/libpng16 -I/home/vagrant/rcairo.win32/vendor/local/include/libxml2
@@ -1,7 +1,7 @@
1
- prefix="/home/kou/work/ruby/rcairo.win32/vendor/local"
2
- exec_prefix="/home/kou/work/ruby/rcairo.win32/vendor/local"
3
- libdir="/home/kou/work/ruby/rcairo.win32/vendor/local/lib"
4
- includedir="/home/kou/work/ruby/rcairo.win32/vendor/local/include/freetype2"
1
+ prefix="/home/vagrant/rcairo.win32/vendor/local"
2
+ exec_prefix="/home/vagrant/rcairo.win32/vendor/local"
3
+ libdir="/home/vagrant/rcairo.win32/vendor/local/lib"
4
+ includedir="/home/vagrant/rcairo.win32/vendor/local/include/freetype2"
5
5
 
6
6
  Name: FreeType 2
7
7
  URL: http://freetype.org
@@ -1,11 +1,11 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include/libpng16
5
5
 
6
6
  Name: libpng
7
7
  Description: Loads and saves PNG files
8
- Version: 1.6.10
8
+ Version: 1.6.14
9
9
  Libs: -L${libdir} -lpng16
10
10
  Libs.private: -lz
11
11
  Cflags: -I${includedir}
@@ -1,11 +1,11 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include/libpng16
5
5
 
6
6
  Name: libpng
7
7
  Description: Loads and saves PNG files
8
- Version: 1.6.10
8
+ Version: 1.6.14
9
9
  Libs: -L${libdir} -lpng16
10
10
  Libs.private: -lz
11
11
  Cflags: -I${includedir}
@@ -1,13 +1,13 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
  modules=1
6
6
 
7
7
  Name: libXML
8
- Version: 2.9.1
8
+ Version: 2.9.2
9
9
  Description: libXML library version2.
10
10
  Requires:
11
11
  Libs: -L${libdir} -lxml2
12
- Libs.private: -lz -lws2_32
12
+ Libs.private: -lz -lws2_32
13
13
  Cflags: -I${includedir}/libxml2
@@ -1,11 +1,11 @@
1
- prefix=/home/kou/work/ruby/rcairo.win32/vendor/local
1
+ prefix=/home/vagrant/rcairo.win32/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
 
6
6
  Name: Pixman
7
7
  Description: The pixman library (version 1)
8
- Version: 0.32.4
8
+ Version: 0.32.6
9
9
  Cflags: -I${includedir}/pixman-1
10
10
  Libs: -L${libdir} -lpixman-1
11
11
 
@@ -1,8 +1,8 @@
1
1
  prefix=/usr/local
2
2
  exec_prefix=/usr/local
3
- libdir=/home/kou/work/ruby/rcairo.win32/vendor/local/lib
4
- sharedlibdir=/home/kou/work/ruby/rcairo.win32/vendor/local/lib
5
- includedir=/home/kou/work/ruby/rcairo.win32/vendor/local/include
3
+ libdir=/home/vagrant/rcairo.win32/vendor/local/lib
4
+ sharedlibdir=/home/vagrant/rcairo.win32/vendor/local/lib
5
+ includedir=/home/vagrant/rcairo.win32/vendor/local/include
6
6
 
7
7
  Name: zlib
8
8
  Description: zlib compression library
@@ -1,8 +1,8 @@
1
1
  #
2
2
  # Configuration file for using the XML library in GNOME applications
3
3
  #
4
- XML2_LIBDIR="-L/home/kou/work/ruby/rcairo.win32/vendor/local/lib"
4
+ XML2_LIBDIR="-L/home/vagrant/rcairo.win32/vendor/local/lib"
5
5
  XML2_LIBS="-lxml2 -lz "
6
- XML2_INCLUDEDIR="-I/home/kou/work/ruby/rcairo.win32/vendor/local/include/libxml2"
7
- MODULE_VERSION="xml2-2.9.1"
6
+ XML2_INCLUDEDIR="-I/home/vagrant/rcairo.win32/vendor/local/include/libxml2"
7
+ MODULE_VERSION="xml2-2.9.2"
8
8
 
@@ -1837,8 +1837,12 @@ static void streamFile(char *filename) {
1837
1837
  if ((fd = open(filename, O_RDONLY)) < 0)
1838
1838
  return;
1839
1839
  base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ;
1840
- if (base == (void *) MAP_FAILED)
1840
+ if (base == (void *) MAP_FAILED) {
1841
+ close(fd);
1842
+ fprintf(stderr, "mmap failure for file %s\n", filename);
1843
+ progresult = XMLLINT_ERR_RDFILE;
1841
1844
  return;
1845
+ }
1842
1846
 
1843
1847
  reader = xmlReaderForMemory(base, info.st_size, filename,
1844
1848
  NULL, options);
@@ -2190,6 +2194,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2190
2194
 
2191
2195
  #if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
2192
2196
  f = fopen(filename, "rb");
2197
+ #elif defined(__OS400__)
2198
+ f = fopen(filename, "rb");
2193
2199
  #else
2194
2200
  f = fopen(filename, "r");
2195
2201
  #endif
@@ -2202,6 +2208,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2202
2208
  if (res > 0) {
2203
2209
  ctxt = htmlCreatePushParserCtxt(NULL, NULL,
2204
2210
  chars, res, filename, XML_CHAR_ENCODING_NONE);
2211
+ xmlCtxtUseOptions(ctxt, options);
2205
2212
  while ((res = fread(chars, 1, pushsize, f)) > 0) {
2206
2213
  htmlParseChunk(ctxt, chars, res, 0);
2207
2214
  }
@@ -2223,8 +2230,12 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2223
2230
  if ((fd = open(filename, O_RDONLY)) < 0)
2224
2231
  return;
2225
2232
  base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ;
2226
- if (base == (void *) MAP_FAILED)
2233
+ if (base == (void *) MAP_FAILED) {
2234
+ close(fd);
2235
+ fprintf(stderr, "mmap failure for file %s\n", filename);
2236
+ progresult = XMLLINT_ERR_RDFILE;
2227
2237
  return;
2238
+ }
2228
2239
 
2229
2240
  doc = htmlReadMemory((char *) base, info.st_size, filename,
2230
2241
  NULL, options);
@@ -2251,6 +2262,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2251
2262
  } else {
2252
2263
  #if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
2253
2264
  f = fopen(filename, "rb");
2265
+ #elif defined(__OS400__)
2266
+ f = fopen(filename, "rb");
2254
2267
  #else
2255
2268
  f = fopen(filename, "r");
2256
2269
  #endif
@@ -2292,6 +2305,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2292
2305
 
2293
2306
  #if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
2294
2307
  f = fopen(filename, "rb");
2308
+ #elif defined(__OS400__)
2309
+ f = fopen(filename, "rb");
2295
2310
  #else
2296
2311
  f = fopen(filename, "r");
2297
2312
  #endif
@@ -2338,8 +2353,12 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2338
2353
  if ((fd = open(filename, O_RDONLY)) < 0)
2339
2354
  return;
2340
2355
  base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ;
2341
- if (base == (void *) MAP_FAILED)
2356
+ if (base == (void *) MAP_FAILED) {
2357
+ close(fd);
2358
+ fprintf(stderr, "mmap failure for file %s\n", filename);
2359
+ progresult = XMLLINT_ERR_RDFILE;
2342
2360
  return;
2361
+ }
2343
2362
 
2344
2363
  if (rectxt == NULL)
2345
2364
  doc = xmlReadMemory((char *) base, info.st_size,
@@ -2561,7 +2580,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
2561
2580
  fprintf(stderr, "Failed to canonicalize\n");
2562
2581
  progresult = XMLLINT_ERR_OUT;
2563
2582
  }
2564
- } else if (canonical) {
2583
+ } else if (canonical_11) {
2565
2584
  xmlChar *result = NULL;
2566
2585
  int size;
2567
2586
 
@@ -2990,7 +3009,7 @@ static void usage(const char *name) {
2990
3009
  printf("\t--noenc : ignore any encoding specified inside the document\n");
2991
3010
  printf("\t--noout : don't output the result tree\n");
2992
3011
  printf("\t--path 'paths': provide a set of paths for resources\n");
2993
- printf("\t--load-trace : print trace of all external entites loaded\n");
3012
+ printf("\t--load-trace : print trace of all external entities loaded\n");
2994
3013
  printf("\t--nonet : refuse to fetch DTDs or entities over network\n");
2995
3014
  printf("\t--nocompact : do not generate compact text nodes\n");
2996
3015
  printf("\t--htmlout : output results as HTML\n");
@@ -3087,6 +3106,10 @@ static void usage(const char *name) {
3087
3106
  static void registerNode(xmlNodePtr node)
3088
3107
  {
3089
3108
  node->_private = malloc(sizeof(long));
3109
+ if (node->_private == NULL) {
3110
+ fprintf(stderr, "Out of memory in xmllint:registerNode()\n");
3111
+ exit(XMLLINT_ERR_MEM);
3112
+ }
3090
3113
  *(long*)node->_private = (long) 0x81726354;
3091
3114
  nbregister++;
3092
3115
  }
@@ -3372,11 +3395,13 @@ main(int argc, char **argv) {
3372
3395
  (!strcmp(argv[i], "--pretty"))) {
3373
3396
  i++;
3374
3397
  #ifdef LIBXML_OUTPUT_ENABLED
3375
- format = atoi(argv[i]);
3376
- if (format == 1) {
3377
- noblanks++;
3378
- xmlKeepBlanksDefault(0);
3379
- }
3398
+ if (argv[i] != NULL) {
3399
+ format = atoi(argv[i]);
3400
+ if (format == 1) {
3401
+ noblanks++;
3402
+ xmlKeepBlanksDefault(0);
3403
+ }
3404
+ }
3380
3405
  #endif /* LIBXML_OUTPUT_ENABLED */
3381
3406
  }
3382
3407
  #ifdef LIBXML_READER_ENABLED
@@ -7,11 +7,13 @@ H1 {font-family: Verdana,Arial,Helvetica}
7
7
  H2 {font-family: Verdana,Arial,Helvetica}
8
8
  H3 {font-family: Verdana,Arial,Helvetica}
9
9
  A:link, A:visited, A:active { text-decoration: underline }
10
- </style><title>FAQ</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000"><table border="0" width="100%" cellpadding="5" cellspacing="0" align="center"><tr><td width="120"><a href="http://swpat.ffii.org/"><img src="epatents.png" alt="Action against software patents" /></a></td><td width="180"><a href="http://www.gnome.org/"><img src="gnome2.png" alt="Gnome2 Logo" /></a><a href="http://www.w3.org/Status"><img src="w3c.png" alt="W3C Logo" /></a><a href="http://www.redhat.com/"><img src="redhat.gif" alt="Red Hat Logo" /></a><div align="left"><a href="http://xmlsoft.org/"><img src="Libxml2-Logo-180x168.gif" alt="Made with Libxml2 Logo" /></a></div></td><td><table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd"><tr><td align="center"><h1>The XML C parser and toolkit of Gnome</h1><h2>FAQ</h2></td></tr></table></td></tr></table></td></tr></table><table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td valign="top" width="200" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Main Menu</b></center></td></tr><tr><td bgcolor="#fffacd"><form action="search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form><ul><li><a href="index.html">Home</a></li><li><a href="html/index.html">Reference Manual</a></li><li><a href="intro.html">Introduction</a></li><li><a href="FAQ.html">FAQ</a></li><li><a href="docs.html" style="font-weight:bold">Developer Menu</a></li><li><a href="bugs.html">Reporting bugs and getting help</a></li><li><a href="help.html">How to help</a></li><li><a href="downloads.html">Downloads</a></li><li><a href="news.html">Releases</a></li><li><a href="XMLinfo.html">XML</a></li><li><a href="XSLT.html">XSLT</a></li><li><a href="xmldtd.html">Validation &amp; DTDs</a></li><li><a href="encoding.html">Encodings support</a></li><li><a href="catalog.html">Catalog support</a></li><li><a href="namespaces.html">Namespaces</a></li><li><a href="contribs.html">Contributions</a></li><li><a href="examples/index.html" style="font-weight:bold">Code Examples</a></li><li><a href="html/index.html" style="font-weight:bold">API Menu</a></li><li><a href="guidelines.html">XML Guidelines</a></li><li><a href="ChangeLog.html">Recent Changes</a></li></ul></td></tr></table><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Related links</b></center></td></tr><tr><td bgcolor="#fffacd"><ul><li><a href="http://mail.gnome.org/archives/xml/">Mail archive</a></li><li><a href="http://xmlsoft.org/XSLT/">XSLT libxslt</a></li><li><a href="http://phd.cs.unibo.it/gdome2/">DOM gdome2</a></li><li><a href="http://www.aleksey.com/xmlsec/">XML-DSig xmlsec</a></li><li><a href="ftp://xmlsoft.org/">FTP</a></li><li><a href="http://www.zlatkovic.com/projects/libxml/">Windows binaries</a></li><li><a href="http://opencsw.org/packages/libxml2">Solaris binaries</a></li><li><a href="http://www.explain.com.au/oss/libxml2xslt.html">MacOsX binaries</a></li><li><a href="http://lxml.de/">lxml Python bindings</a></li><li><a href="http://cpan.uwinnipeg.ca/dist/XML-LibXML">Perl bindings</a></li><li><a href="http://libxmlplusplus.sourceforge.net/">C++ bindings</a></li><li><a href="http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4">PHP bindings</a></li><li><a href="http://sourceforge.net/projects/libxml2-pas/">Pascal bindings</a></li><li><a href="http://libxml.rubyforge.org/">Ruby bindings</a></li><li><a href="http://tclxml.sourceforge.net/">Tcl bindings</a></li><li><a href="http://bugzilla.gnome.org/buglist.cgi?product=libxml2">Bug Tracker</a></li></ul></td></tr></table></td></tr></table></td><td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd"><p>Table of Contents:</p><ul><li><a href="FAQ.html#License">License(s)</a></li>
10
+ </style><title>FAQ</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000"><table border="0" width="100%" cellpadding="5" cellspacing="0" align="center"><tr><td width="120"><a href="http://swpat.ffii.org/"><img src="epatents.png" alt="Action against software patents" /></a></td><td width="180"><a href="http://www.gnome.org/"><img src="gnome2.png" alt="Gnome2 Logo" /></a><a href="http://www.w3.org/Status"><img src="w3c.png" alt="W3C Logo" /></a><a href="http://www.redhat.com/"><img src="redhat.gif" alt="Red Hat Logo" /></a><div align="left"><a href="http://xmlsoft.org/"><img src="Libxml2-Logo-180x168.gif" alt="Made with Libxml2 Logo" /></a></div></td><td><table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd"><tr><td align="center"><h1>The XML C parser and toolkit of Gnome</h1><h2>FAQ</h2></td></tr></table></td></tr></table></td></tr></table><table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td valign="top" width="200" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Main Menu</b></center></td></tr><tr><td bgcolor="#fffacd"><form action="search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form><ul><li><a href="index.html">Home</a></li><li><a href="html/index.html">Reference Manual</a></li><li><a href="intro.html">Introduction</a></li><li><a href="FAQ.html">FAQ</a></li><li><a href="docs.html" style="font-weight:bold">Developer Menu</a></li><li><a href="bugs.html">Reporting bugs and getting help</a></li><li><a href="help.html">How to help</a></li><li><a href="downloads.html">Downloads</a></li><li><a href="news.html">Releases</a></li><li><a href="XMLinfo.html">XML</a></li><li><a href="XSLT.html">XSLT</a></li><li><a href="xmldtd.html">Validation &amp; DTDs</a></li><li><a href="encoding.html">Encodings support</a></li><li><a href="catalog.html">Catalog support</a></li><li><a href="namespaces.html">Namespaces</a></li><li><a href="contribs.html">Contributions</a></li><li><a href="examples/index.html" style="font-weight:bold">Code Examples</a></li><li><a href="html/index.html" style="font-weight:bold">API Menu</a></li><li><a href="guidelines.html">XML Guidelines</a></li><li><a href="ChangeLog.html">Recent Changes</a></li></ul></td></tr></table><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Related links</b></center></td></tr><tr><td bgcolor="#fffacd"><ul><li><a href="http://mail.gnome.org/archives/xml/">Mail archive</a></li><li><a href="http://xmlsoft.org/XSLT/">XSLT libxslt</a></li><li><a href="http://phd.cs.unibo.it/gdome2/">DOM gdome2</a></li><li><a href="http://www.aleksey.com/xmlsec/">XML-DSig xmlsec</a></li><li><a href="ftp://xmlsoft.org/">FTP</a></li><li><a href="http://www.zlatkovic.com/projects/libxml/">Windows binaries</a></li><li><a href="http://opencsw.org/packages/libxml2">Solaris binaries</a></li><li><a href="http://www.explain.com.au/oss/libxml2xslt.html">MacOsX binaries</a></li><li><a href="http://lxml.de/">lxml Python bindings</a></li><li><a href="http://cpan.uwinnipeg.ca/dist/XML-LibXML">Perl bindings</a></li><li><a href="http://libxmlplusplus.sourceforge.net/">C++ bindings</a></li><li><a href="http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4">PHP bindings</a></li><li><a href="http://sourceforge.net/projects/libxml2-pas/">Pascal bindings</a></li><li><a href="http://libxml.rubyforge.org/">Ruby bindings</a></li><li><a href="http://tclxml.sourceforge.net/">Tcl bindings</a></li><li><a href="http://bugzilla.gnome.org/buglist.cgi?product=libxml2">Bug Tracker</a></li></ul></td></tr></table></td></tr></table></td><td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd"><p>Table of Contents:</p><ul>
11
+ <li><a href="FAQ.html#License">License(s)</a></li>
11
12
  <li><a href="FAQ.html#Installati">Installation</a></li>
12
13
  <li><a href="FAQ.html#Compilatio">Compilation</a></li>
13
14
  <li><a href="FAQ.html#Developer">Developer corner</a></li>
14
- </ul><h3><a name="License" id="License">License</a>(s)</h3><ol><li><em>Licensing Terms for libxml</em>
15
+ </ul><h3><a name="License" id="License">License</a>(s)</h3><ol>
16
+ <li><em>Licensing Terms for libxml</em>
15
17
  <p>libxml2 is released under the <a href="http://www.opensource.org/licenses/mit-license.html">MIT
16
18
  License</a>; see the file Copyright in the distribution for the precise
17
19
  wording</p>
@@ -22,7 +24,8 @@ A:link, A:visited, A:active { text-decoration: underline }
22
24
  improvements as patches for possible incorporation in the main
23
25
  development tree.</p>
24
26
  </li>
25
- </ol><h3><a name="Installati" id="Installati">Installation</a></h3><ol><li><strong><span style="background-color: #FF0000">Do Not Use
27
+ </ol><h3><a name="Installati" id="Installati">Installation</a></h3><ol>
28
+ <li><strong><span style="background-color: #FF0000">Do Not Use
26
29
  libxml1</span></strong>, use libxml2</li>
27
30
  <p></p>
28
31
  <li><em>Where can I get libxml</em> ?
@@ -33,7 +36,8 @@ A:link, A:visited, A:active { text-decoration: underline }
33
36
  </li>
34
37
  <p></p>
35
38
  <li><em>I see libxml and libxml2 releases, which one should I install ?</em>
36
- <ul><li>If you are not constrained by backward compatibility issues with
39
+ <ul>
40
+ <li>If you are not constrained by backward compatibility issues with
37
41
  existing applications, install libxml2 only</li>
38
42
  <li>If you are not doing development, you can safely install both.
39
43
  Usually the packages <a href="http://rpmfind.net/linux/RPM/libxml.html">libxml</a> and <a href="http://rpmfind.net/linux/RPM/libxml2.html">libxml2</a> are
@@ -45,7 +49,8 @@ A:link, A:visited, A:active { text-decoration: underline }
45
49
  too for libxml2 &gt;= 2.3.0</li>
46
50
  <li>If you are developing a new application, please develop against
47
51
  libxml2(-devel)</li>
48
- </ul></li>
52
+ </ul>
53
+ </li>
49
54
  <li><em>I can't install the libxml package, it conflicts with libxml0</em>
50
55
  <p>You probably have an old libxml0 package used to provide the shared
51
56
  library for libxml.so.0, you can probably safely remove it. The libxml
@@ -62,7 +67,8 @@ A:link, A:visited, A:active { text-decoration: underline }
62
67
  package, providing includes, static libraries and scripts needed to build
63
68
  applications with libxml(2)) that you can install locally.</p>
64
69
  </li>
65
- </ol><h3><a name="Compilatio" id="Compilatio">Compilation</a></h3><ol><li><em>What is the process to compile libxml2 ?</em>
70
+ </ol><h3><a name="Compilatio" id="Compilatio">Compilation</a></h3><ol>
71
+ <li><em>What is the process to compile libxml2 ?</em>
66
72
  <p>As most UNIX libraries libxml2 follows the "standard":</p>
67
73
  <p><code>gunzip -c xxx.tar.gz | tar xvf -</code></p>
68
74
  <p><code>cd libxml-xxxx</code></p>
@@ -80,14 +86,16 @@ A:link, A:visited, A:active { text-decoration: underline }
80
86
  find).</p>
81
87
  <p>However if found at configuration time libxml2 will detect and use the
82
88
  following libs:</p>
83
- <ul><li><a href="http://www.info-zip.org/pub/infozip/zlib/">libz</a> : a
89
+ <ul>
90
+ <li><a href="http://www.info-zip.org/pub/infozip/zlib/">libz</a> : a
84
91
  highly portable and available widely compression library.</li>
85
92
  <li>iconv: a powerful character encoding conversion library. It is
86
93
  included by default in recent glibc libraries, so it doesn't need to
87
94
  be installed specifically on Linux. It now seems a <a href="http://www.opennc.org/onlinepubs/7908799/xsh/iconv.html">part
88
95
  of the official UNIX</a> specification. Here is one <a href="http://www.gnu.org/software/libiconv/">implementation of the
89
96
  library</a> which source can be found <a href="ftp://ftp.ilog.fr/pub/Users/haible/gnu/">here</a>.</li>
90
- </ul></li>
97
+ </ul>
98
+ </li>
91
99
  <p></p>
92
100
  <li><em>Make check fails on some platforms</em>
93
101
  <p>Sometimes the regression tests' results don't completely match the
@@ -108,7 +116,8 @@ A:link, A:visited, A:active { text-decoration: underline }
108
116
  optimizer which miscompiles the URI module. Please use another
109
117
  compiler.</p>
110
118
  </li>
111
- </ol><h3><a name="Developer" id="Developer">Developer</a> corner</h3><ol><li><em>Troubles compiling or linking programs using libxml2</em>
119
+ </ol><h3><a name="Developer" id="Developer">Developer</a> corner</h3><ol>
120
+ <li><em>Troubles compiling or linking programs using libxml2</em>
112
121
  <p>Usually the problem comes from the fact that the compiler doesn't get
113
122
  the right compilation or linking flags. There is a small shell script
114
123
  <code>xml2-config</code> which is installed as part of libxml2 usual
@@ -126,7 +135,8 @@ A:link, A:visited, A:active { text-decoration: underline }
126
135
  <p>There are many different ways to accomplish this. Here is one way to
127
136
  do this under Linux. Suppose your home directory is <code>/home/user.
128
137
  </code>Then:</p>
129
- <ul><li>Create a subdirectory, let's call it <code>myxml</code></li>
138
+ <ul>
139
+ <li>Create a subdirectory, let's call it <code>myxml</code></li>
130
140
  <li>unpack the libxml2 distribution into that subdirectory</li>
131
141
  <li>chdir into the unpacked distribution
132
142
  (<code>/home/user/myxml/libxml2 </code>)</li>
@@ -159,7 +169,8 @@ A:link, A:visited, A:active { text-decoration: underline }
159
169
  program which you just installed will be used instead of the system
160
170
  default one, and this will <em>automatically</em> get the correct
161
171
  libraries linked with your program.</li>
162
- </ul></li>
172
+ </ul>
173
+ </li>
163
174
 
164
175
  <p></p>
165
176
  <li><em>xmlDocDump() generates output on one line.</em>
@@ -167,7 +178,8 @@ A:link, A:visited, A:active { text-decoration: underline }
167
178
  document since <strong>all spaces in the content of a document are
168
179
  significant</strong>. If you build a tree from the API and want
169
180
  indentation:</p>
170
- <ol><li>the correct way is to generate those yourself too.</li>
181
+ <ol>
182
+ <li>the correct way is to generate those yourself too.</li>
171
183
  <li>the dangerous way is to ask libxml2 to add those blanks to your
172
184
  content <strong>modifying the content of your document in the
173
185
  process</strong>. The result may not be what you expect. There is
@@ -175,7 +187,8 @@ A:link, A:visited, A:active { text-decoration: underline }
175
187
  affect other parts of the content of your document. See <a href="http://xmlsoft.org/html/libxml-parser.html#xmlKeepBlanksDefault">xmlKeepBlanksDefault
176
188
  ()</a> and <a href="http://xmlsoft.org/html/libxml-tree.html#xmlSaveFormatFile">xmlSaveFormatFile
177
189
  ()</a></li>
178
- </ol></li>
190
+ </ol>
191
+ </li>
179
192
  <p></p>
180
193
  <li><em>Extra nodes in the document:</em>
181
194
  <p><em>For an XML file as below:</em></p>
@@ -233,7 +246,8 @@ pnode=pxmlDoc-&gt;children-&gt;children;</pre>
233
246
  web page?</em>
234
247
  <p>Ideally a libxml2 book would be nice. I have no such plan ... But you
235
248
  can:</p>
236
- <ul><li>check more deeply the <a href="html/libxml-lib.html">existing
249
+ <ul>
250
+ <li>check more deeply the <a href="html/libxml-lib.html">existing
237
251
  generated doc</a></li>
238
252
  <li>have a look at <a href="examples/index.html">the set of
239
253
  examples</a>.</li>
@@ -244,18 +258,21 @@ pnode=pxmlDoc-&gt;children-&gt;children;</pre>
244
258
  as possible, so looking at it may be helpful. In particular the code
245
259
  of <a href="http://svn.gnome.org/viewvc/libxml2/trunk/xmllint.c?view=markup">xmllint.c</a> and of the various testXXX.c test programs should
246
260
  provide good examples of how to do things with the library.</li>
247
- </ul></li>
261
+ </ul>
262
+ </li>
248
263
  <p></p>
249
264
  <li><em>What about C++ ?</em>
250
265
  <p>libxml2 is written in pure C in order to allow easy reuse on a number
251
266
  of platforms, including embedded systems. I don't intend to convert to
252
267
  C++.</p>
253
268
  <p>There is however a C++ wrapper which may fulfill your needs:</p>
254
- <ul><li>by Ari Johnson &lt;ari@btigate.com&gt;:
269
+ <ul>
270
+ <li>by Ari Johnson &lt;ari@btigate.com&gt;:
255
271
  <p>Website: <a href="http://libxmlplusplus.sourceforge.net/">http://libxmlplusplus.sourceforge.net/</a></p>
256
272
  <p>Download: <a href="http://sourceforge.net/project/showfiles.php?group_id=12999">http://sourceforge.net/project/showfiles.php?group_id=12999</a></p>
257
273
  </li>
258
- </ul></li>
274
+ </ul>
275
+ </li>
259
276
  <li><em>How to validate a document a posteriori ?</em>
260
277
  <p>It is possible to validate documents which had not been validated at
261
278
  initial parsing time or documents which have been built from scratch