cairo 1.14.0-x64-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.
- checksums.yaml +7 -0
- data/AUTHORS +7 -0
- data/COPYING +59 -0
- data/GPL +340 -0
- data/Gemfile +5 -0
- data/NEWS +429 -0
- data/README.rdoc +120 -0
- data/Rakefile +620 -0
- data/ext/cairo/cairo.def +140 -0
- data/ext/cairo/depend +3 -0
- data/ext/cairo/extconf.rb +202 -0
- data/ext/cairo/rb_cairo.c +111 -0
- data/ext/cairo/rb_cairo.h +348 -0
- data/ext/cairo/rb_cairo_constants.c +673 -0
- data/ext/cairo/rb_cairo_context.c +1741 -0
- data/ext/cairo/rb_cairo_device.c +475 -0
- data/ext/cairo/rb_cairo_exception.c +446 -0
- data/ext/cairo/rb_cairo_font_extents.c +200 -0
- data/ext/cairo/rb_cairo_font_face.c +726 -0
- data/ext/cairo/rb_cairo_font_options.c +197 -0
- data/ext/cairo/rb_cairo_glyph.c +161 -0
- data/ext/cairo/rb_cairo_io.c +166 -0
- data/ext/cairo/rb_cairo_io.h +44 -0
- data/ext/cairo/rb_cairo_matrix.c +366 -0
- data/ext/cairo/rb_cairo_path.c +459 -0
- data/ext/cairo/rb_cairo_pattern.c +1192 -0
- data/ext/cairo/rb_cairo_private.c +255 -0
- data/ext/cairo/rb_cairo_private.h +129 -0
- data/ext/cairo/rb_cairo_rectangle.c +83 -0
- data/ext/cairo/rb_cairo_region.c +385 -0
- data/ext/cairo/rb_cairo_scaled_font.c +235 -0
- data/ext/cairo/rb_cairo_surface.c +2284 -0
- data/ext/cairo/rb_cairo_text_cluster.c +151 -0
- data/ext/cairo/rb_cairo_text_extents.c +221 -0
- data/lib/2.0/cairo.so +0 -0
- data/lib/2.1/cairo.so +0 -0
- data/lib/2.2/cairo.so +0 -0
- data/lib/cairo.rb +154 -0
- data/lib/cairo/color.rb +267 -0
- data/lib/cairo/colors.rb +656 -0
- data/lib/cairo/constants.rb +24 -0
- data/lib/cairo/context.rb +29 -0
- data/lib/cairo/context/blur.rb +45 -0
- data/lib/cairo/context/circle.rb +9 -0
- data/lib/cairo/context/color.rb +11 -0
- data/lib/cairo/context/path.rb +117 -0
- data/lib/cairo/context/rectangle.rb +33 -0
- data/lib/cairo/context/triangle.rb +12 -0
- data/lib/cairo/device.rb +13 -0
- data/lib/cairo/paper.rb +183 -0
- data/lib/cairo/papers.rb +65 -0
- data/lib/cairo/path.rb +15 -0
- data/lib/cairo/pattern.rb +12 -0
- data/lib/cairo/point.rb +7 -0
- data/lib/cairo/surface.rb +13 -0
- data/samples/agg/aa_test.rb +304 -0
- data/samples/blur.rb +46 -0
- data/samples/pac-nomralize.rb +170 -0
- data/samples/pac-tee.rb +170 -0
- data/samples/pac.rb +98 -0
- data/samples/png.rb +44 -0
- data/samples/scalable.rb +55 -0
- data/samples/text-on-path.rb +59 -0
- data/samples/text2.rb +130 -0
- data/test/cairo-test-utils.rb +44 -0
- data/test/run-test.rb +29 -0
- data/test/test_color.rb +17 -0
- data/test/test_constants.rb +27 -0
- data/test/test_context.rb +105 -0
- data/test/test_exception.rb +36 -0
- data/test/test_font_extents.rb +36 -0
- data/test/test_font_face.rb +257 -0
- data/test/test_font_options.rb +13 -0
- data/test/test_image_surface.rb +28 -0
- data/test/test_paper.rb +81 -0
- data/test/test_quartz_image_surface.rb +13 -0
- data/test/test_raster_source_pattern.rb +162 -0
- data/test/test_recording_surface.rb +19 -0
- data/test/test_region.rb +102 -0
- data/test/test_scaled_font.rb +34 -0
- data/test/test_script_device.rb +46 -0
- data/test/test_script_surface.rb +13 -0
- data/test/test_surface.rb +61 -0
- data/test/test_tee_surface.rb +32 -0
- data/test/test_text_cluster.rb +32 -0
- data/test/test_text_extents.rb +40 -0
- data/test/test_text_to_glyphs_data.rb +51 -0
- data/test/test_xml_device.rb +22 -0
- data/test/test_xml_surface.rb +34 -0
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-list.exe +0 -0
- data/vendor/local/bin/fc-match.exe +0 -0
- data/vendor/local/bin/fc-pattern.exe +0 -0
- data/vendor/local/bin/fc-query.exe +0 -0
- data/vendor/local/bin/fc-scan.exe +0 -0
- data/vendor/local/bin/fc-validate.exe +0 -0
- data/vendor/local/bin/freetype-config +163 -0
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/vendor/local/bin/libfreetype-6.dll +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +127 -0
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +127 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libwinpthread-1.dll +0 -0
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/png-fix-itxt.exe +0 -0
- data/vendor/local/bin/pngfix.exe +0 -0
- data/vendor/local/bin/xml2-config +106 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +81 -0
- data/vendor/local/etc/fonts/conf.d/20-unhint-small-vera.conf +48 -0
- data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +546 -0
- data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +24 -0
- data/vendor/local/etc/fonts/conf.d/40-nonlatin.conf +231 -0
- data/vendor/local/etc/fonts/conf.d/45-latin.conf +189 -0
- data/vendor/local/etc/fonts/conf.d/49-sansserif.conf +21 -0
- data/vendor/local/etc/fonts/conf.d/50-user.conf +15 -0
- data/vendor/local/etc/fonts/conf.d/51-local.conf +6 -0
- data/vendor/local/etc/fonts/conf.d/60-latin.conf +70 -0
- data/vendor/local/etc/fonts/conf.d/65-fonts-persian.conf +419 -0
- data/vendor/local/etc/fonts/conf.d/65-nonlatin.conf +196 -0
- data/vendor/local/etc/fonts/conf.d/69-unifont.conf +28 -0
- data/vendor/local/etc/fonts/conf.d/80-delicious.conf +19 -0
- data/vendor/local/etc/fonts/conf.d/90-synthetic.conf +64 -0
- data/vendor/local/etc/fonts/conf.d/README +23 -0
- data/vendor/local/etc/fonts/fonts.conf +155 -0
- data/vendor/local/include/cairo/cairo-deprecated.h +123 -0
- data/vendor/local/include/cairo/cairo-features.h +31 -0
- data/vendor/local/include/cairo/cairo-ft.h +118 -0
- data/vendor/local/include/cairo/cairo-gobject.h +192 -0
- data/vendor/local/include/cairo/cairo-pdf.h +94 -0
- data/vendor/local/include/cairo/cairo-ps.h +116 -0
- data/vendor/local/include/cairo/cairo-script-interpreter.h +124 -0
- data/vendor/local/include/cairo/cairo-script.h +98 -0
- data/vendor/local/include/cairo/cairo-svg.h +84 -0
- data/vendor/local/include/cairo/cairo-version.h +8 -0
- data/vendor/local/include/cairo/cairo-win32.h +112 -0
- data/vendor/local/include/cairo/cairo.h +3153 -0
- data/vendor/local/include/fontconfig/fcfreetype.h +59 -0
- data/vendor/local/include/fontconfig/fcprivate.h +124 -0
- data/vendor/local/include/fontconfig/fontconfig.h +1010 -0
- data/vendor/local/include/freetype2/config/ftconfig.h +706 -0
- data/vendor/local/include/freetype2/config/ftheader.h +832 -0
- data/vendor/local/include/freetype2/config/ftmodule.h +20 -0
- data/vendor/local/include/freetype2/config/ftoption.h +846 -0
- data/vendor/local/include/freetype2/config/ftstdlib.h +174 -0
- data/vendor/local/include/freetype2/freetype.h +4076 -0
- data/vendor/local/include/freetype2/ft2build.h +42 -0
- data/vendor/local/include/freetype2/ftadvanc.h +182 -0
- data/vendor/local/include/freetype2/ftautoh.h +402 -0
- data/vendor/local/include/freetype2/ftbbox.h +102 -0
- data/vendor/local/include/freetype2/ftbdf.h +210 -0
- data/vendor/local/include/freetype2/ftbitmap.h +227 -0
- data/vendor/local/include/freetype2/ftbzip2.h +102 -0
- data/vendor/local/include/freetype2/ftcache.h +1057 -0
- data/vendor/local/include/freetype2/ftcffdrv.h +254 -0
- data/vendor/local/include/freetype2/ftchapters.h +121 -0
- data/vendor/local/include/freetype2/ftcid.h +166 -0
- data/vendor/local/include/freetype2/fterrdef.h +249 -0
- data/vendor/local/include/freetype2/fterrors.h +198 -0
- data/vendor/local/include/freetype2/ftgasp.h +128 -0
- data/vendor/local/include/freetype2/ftglyph.h +620 -0
- data/vendor/local/include/freetype2/ftgxval.h +358 -0
- data/vendor/local/include/freetype2/ftgzip.h +149 -0
- data/vendor/local/include/freetype2/ftimage.h +1322 -0
- data/vendor/local/include/freetype2/ftincrem.h +353 -0
- data/vendor/local/include/freetype2/ftlcdfil.h +251 -0
- data/vendor/local/include/freetype2/ftlist.h +277 -0
- data/vendor/local/include/freetype2/ftlzw.h +99 -0
- data/vendor/local/include/freetype2/ftmac.h +274 -0
- data/vendor/local/include/freetype2/ftmm.h +377 -0
- data/vendor/local/include/freetype2/ftmodapi.h +641 -0
- data/vendor/local/include/freetype2/ftmoderr.h +194 -0
- data/vendor/local/include/freetype2/ftotval.h +203 -0
- data/vendor/local/include/freetype2/ftoutln.h +572 -0
- data/vendor/local/include/freetype2/ftpfr.h +172 -0
- data/vendor/local/include/freetype2/ftrender.h +238 -0
- data/vendor/local/include/freetype2/ftsizes.h +159 -0
- data/vendor/local/include/freetype2/ftsnames.h +200 -0
- data/vendor/local/include/freetype2/ftstroke.h +751 -0
- data/vendor/local/include/freetype2/ftsynth.h +81 -0
- data/vendor/local/include/freetype2/ftsystem.h +347 -0
- data/vendor/local/include/freetype2/fttrigon.h +350 -0
- data/vendor/local/include/freetype2/ftttdrv.h +170 -0
- data/vendor/local/include/freetype2/fttypes.h +598 -0
- data/vendor/local/include/freetype2/ftwinfnt.h +275 -0
- data/vendor/local/include/freetype2/ftxf86.h +83 -0
- data/vendor/local/include/freetype2/t1tables.h +662 -0
- data/vendor/local/include/freetype2/ttnameid.h +1237 -0
- data/vendor/local/include/freetype2/tttables.h +787 -0
- data/vendor/local/include/freetype2/tttags.h +111 -0
- data/vendor/local/include/freetype2/ttunpat.h +59 -0
- data/vendor/local/include/libpng16/png.h +3276 -0
- data/vendor/local/include/libpng16/pngconf.h +644 -0
- data/vendor/local/include/libpng16/pnglibconf.h +208 -0
- data/vendor/local/include/libxml2/libxml/DOCBparser.h +96 -0
- data/vendor/local/include/libxml2/libxml/HTMLparser.h +306 -0
- data/vendor/local/include/libxml2/libxml/HTMLtree.h +147 -0
- data/vendor/local/include/libxml2/libxml/SAX.h +173 -0
- data/vendor/local/include/libxml2/libxml/SAX2.h +178 -0
- data/vendor/local/include/libxml2/libxml/c14n.h +126 -0
- data/vendor/local/include/libxml2/libxml/catalog.h +182 -0
- data/vendor/local/include/libxml2/libxml/chvalid.h +230 -0
- data/vendor/local/include/libxml2/libxml/debugXML.h +217 -0
- data/vendor/local/include/libxml2/libxml/dict.h +80 -0
- data/vendor/local/include/libxml2/libxml/encoding.h +240 -0
- data/vendor/local/include/libxml2/libxml/entities.h +151 -0
- data/vendor/local/include/libxml2/libxml/globals.h +509 -0
- data/vendor/local/include/libxml2/libxml/hash.h +233 -0
- data/vendor/local/include/libxml2/libxml/list.h +137 -0
- data/vendor/local/include/libxml2/libxml/nanoftp.h +163 -0
- data/vendor/local/include/libxml2/libxml/nanohttp.h +81 -0
- data/vendor/local/include/libxml2/libxml/parser.h +1241 -0
- data/vendor/local/include/libxml2/libxml/parserInternals.h +644 -0
- data/vendor/local/include/libxml2/libxml/pattern.h +100 -0
- data/vendor/local/include/libxml2/libxml/relaxng.h +217 -0
- data/vendor/local/include/libxml2/libxml/schemasInternals.h +958 -0
- data/vendor/local/include/libxml2/libxml/schematron.h +142 -0
- data/vendor/local/include/libxml2/libxml/threads.h +84 -0
- data/vendor/local/include/libxml2/libxml/tree.h +1310 -0
- data/vendor/local/include/libxml2/libxml/uri.h +94 -0
- data/vendor/local/include/libxml2/libxml/valid.h +458 -0
- data/vendor/local/include/libxml2/libxml/xinclude.h +129 -0
- data/vendor/local/include/libxml2/libxml/xlink.h +189 -0
- data/vendor/local/include/libxml2/libxml/xmlIO.h +366 -0
- data/vendor/local/include/libxml2/libxml/xmlautomata.h +146 -0
- data/vendor/local/include/libxml2/libxml/xmlerror.h +945 -0
- data/vendor/local/include/libxml2/libxml/xmlexports.h +162 -0
- data/vendor/local/include/libxml2/libxml/xmlmemory.h +224 -0
- data/vendor/local/include/libxml2/libxml/xmlmodule.h +57 -0
- data/vendor/local/include/libxml2/libxml/xmlreader.h +428 -0
- data/vendor/local/include/libxml2/libxml/xmlregexp.h +222 -0
- data/vendor/local/include/libxml2/libxml/xmlsave.h +88 -0
- data/vendor/local/include/libxml2/libxml/xmlschemas.h +246 -0
- data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +151 -0
- data/vendor/local/include/libxml2/libxml/xmlstring.h +140 -0
- data/vendor/local/include/libxml2/libxml/xmlunicode.h +202 -0
- data/vendor/local/include/libxml2/libxml/xmlversion.h +489 -0
- data/vendor/local/include/libxml2/libxml/xmlwriter.h +488 -0
- data/vendor/local/include/libxml2/libxml/xpath.h +557 -0
- data/vendor/local/include/libxml2/libxml/xpathInternals.h +632 -0
- data/vendor/local/include/libxml2/libxml/xpointer.h +114 -0
- data/vendor/local/include/pixman-1/pixman-version.h +50 -0
- data/vendor/local/include/pixman-1/pixman.h +1111 -0
- data/vendor/local/include/png.h +3276 -0
- data/vendor/local/include/pngconf.h +644 -0
- data/vendor/local/include/pnglibconf.h +208 -0
- data/vendor/local/include/zconf.h +511 -0
- data/vendor/local/include/zlib.h +1768 -0
- data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
- data/vendor/local/lib/fontconfig.def +207 -0
- data/vendor/local/lib/libcairo-gobject.a +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +41 -0
- data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.la +41 -0
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libcairo.la +41 -0
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfontconfig.la +41 -0
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libfreetype.la +41 -0
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpixman-1.la +41 -0
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +41 -0
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +41 -0
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libxml2.la +41 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-png.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-script.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo.pc +13 -0
- data/vendor/local/lib/pkgconfig/fontconfig.pc +18 -0
- data/vendor/local/lib/pkgconfig/freetype2.pc +14 -0
- data/vendor/local/lib/pkgconfig/libpng.pc +11 -0
- data/vendor/local/lib/pkgconfig/libpng16.pc +11 -0
- data/vendor/local/lib/pkgconfig/libxml-2.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/pixman-1.pc +11 -0
- data/vendor/local/lib/pkgconfig/zlib.pc +13 -0
- data/vendor/local/lib/xml2Conf.sh +8 -0
- data/vendor/local/share/aclocal/freetype2.m4 +194 -0
- data/vendor/local/share/aclocal/libxml.m4 +188 -0
- data/vendor/local/share/doc/libxml2-2.9.2/Copyright +23 -0
- data/vendor/local/share/doc/libxml2-2.9.2/examples/testHTML.c +880 -0
- data/vendor/local/share/doc/libxml2-2.9.2/examples/testSAX.c +1198 -0
- data/vendor/local/share/doc/libxml2-2.9.2/examples/testXPath.c +229 -0
- data/vendor/local/share/doc/libxml2-2.9.2/examples/xmllint.c +3801 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/DOM.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/FAQ.html +299 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/Libxml2-Logo-180x168.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/Libxml2-Logo-90x34.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/encoding.html +217 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/examples.xml +751 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/examples.xsl +174 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/book1.html +13 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/home.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/index.html +13 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/left.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-DOCBparser.html +51 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-HTMLparser.html +184 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-HTMLtree.html +73 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-SAX.html +125 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-SAX2.html +128 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-c14n.html +38 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-catalog.html +142 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-chvalid.html +72 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-debugXML.html +120 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-dict.html +58 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-encoding.html +124 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-entities.html +79 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-globals.html +152 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-hash.html +116 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-lib.html +13 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-list.html +120 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-nanoftp.html +94 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-nanohttp.html +65 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-parser.html +559 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-parserInternals.html +322 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-pattern.html +76 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-relaxng.html +162 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-schemasInternals.html +373 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-schematron.html +81 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-threads.html +72 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-tree.html +990 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-uri.html +73 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-valid.html +289 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xinclude.html +59 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xlink.html +82 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlIO.html +212 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlautomata.html +85 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlerror.html +865 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlexports.html +20 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlmemory.html +107 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlmodule.html +38 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlreader.html +330 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlregexp.html +143 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlsave.html +60 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlschemas.html +185 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlschemastypes.html +123 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlstring.html +108 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlunicode.html +512 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlversion.html +63 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlwriter.html +261 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpath.html +316 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpathInternals.html +394 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpointer.html +83 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xzlib.html +16 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/right.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/html/up.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/index.html +14 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/io1.c +166 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/io1.res +5 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/io2.c +58 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/io2.res +2 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/libxml.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/parse1.c +56 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/parse2.c +72 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/parse3.c +60 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/parse4.c +143 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader1.c +107 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader1.res +14 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader2.c +122 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader3.c +120 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader3.res +13 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader4.c +122 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/reader4.res +3 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/redhat.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/smallfootonly.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/structure.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/test1.xml +1 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/test2.xml +13 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/test3.xml +39 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/testWriter.c +1198 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tree1.c +94 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tree1.res +4 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tree2.c +118 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tree2.res +18 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tst.xml +7 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apa.html +8 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apb.html +14 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apc.html +82 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apd.html +76 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ape.html +78 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apf.html +67 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apg.html +75 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/aph.html +76 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/api.html +4 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s02.html +14 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s03.html +47 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s04.html +54 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s05.html +55 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s06.html +35 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s07.html +30 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s08.html +38 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s09.html +63 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/blank.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/1.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/10.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/2.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/3.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/4.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/5.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/6.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/7.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/8.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/9.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/caution.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/draft.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/home.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/important.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/next.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/note.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/prev.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/tip.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-blank.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-minus.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-plus.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/up.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/warning.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeaddattribute.c +64 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeaddkeyword.c +75 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeconvert.c +73 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includegetattribute.c +72 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includekeyword.c +79 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includexpath.c +74 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/index.html +14 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ix01.html +1 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/xmltutorial.pdf +1336 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/w3c.png +0 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/writer.xml +2 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/xml.html +5995 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/xpath1.c +250 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/xpath1.res +5 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/xpath2.c +190 -0
- data/vendor/local/share/doc/libxml2-2.9.2/html/xpath2.res +30 -0
- data/vendor/local/share/fontconfig/conf.avail/10-autohint.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/10-no-sub-pixel.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf +81 -0
- data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/10-unhinted.conf +14 -0
- data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-default.conf +16 -0
- data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf +16 -0
- data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-light.conf +16 -0
- data/vendor/local/share/fontconfig/conf.avail/20-unhint-small-vera.conf +48 -0
- data/vendor/local/share/fontconfig/conf.avail/25-unhint-nonlatin.conf +128 -0
- data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +546 -0
- data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +24 -0
- data/vendor/local/share/fontconfig/conf.avail/40-nonlatin.conf +231 -0
- data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +189 -0
- data/vendor/local/share/fontconfig/conf.avail/49-sansserif.conf +21 -0
- data/vendor/local/share/fontconfig/conf.avail/50-user.conf +15 -0
- data/vendor/local/share/fontconfig/conf.avail/51-local.conf +6 -0
- data/vendor/local/share/fontconfig/conf.avail/60-latin.conf +70 -0
- data/vendor/local/share/fontconfig/conf.avail/65-fonts-persian.conf +419 -0
- data/vendor/local/share/fontconfig/conf.avail/65-khmer.conf +16 -0
- data/vendor/local/share/fontconfig/conf.avail/65-nonlatin.conf +196 -0
- data/vendor/local/share/fontconfig/conf.avail/69-unifont.conf +28 -0
- data/vendor/local/share/fontconfig/conf.avail/70-no-bitmaps.conf +12 -0
- data/vendor/local/share/fontconfig/conf.avail/70-yes-bitmaps.conf +12 -0
- data/vendor/local/share/fontconfig/conf.avail/80-delicious.conf +19 -0
- data/vendor/local/share/fontconfig/conf.avail/90-synthetic.conf +64 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +122 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +53 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +123 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +121 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +117 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +75 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +120 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +92 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +93 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +397 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +428 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +452 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +342 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +315 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1194 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +577 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +129 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +197 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +600 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +226 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +810 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +302 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +360 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +394 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +156 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +677 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +326 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +280 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +527 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +535 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +170 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +636 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +380 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +653 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +559 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2231 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +956 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1637 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2695 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +53 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +53 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +44 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +74 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1138 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +747 -0
- data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +177 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +193 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +179 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +123 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +107 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +128 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +1122 -0
- data/vendor/local/share/gtk-doc/html/cairo/index.html +157 -0
- data/vendor/local/share/gtk-doc/html/cairo/index.sgml +833 -0
- data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +73 -0
- data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/general.html +38 -0
- data/vendor/local/share/gtk-doc/html/libxml2/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/index.html +67 -0
- data/vendor/local/share/gtk-doc/html/libxml2/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html +138 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +373 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html +172 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX.html +243 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html +247 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-c14n.html +91 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-catalog.html +278 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html +241 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html +225 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +134 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +218 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-globals.html +383 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-hash.html +214 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-list.html +226 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +187 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html +142 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +766 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +688 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-pattern.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html +278 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html +860 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schematron.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-threads.html +161 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +1597 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-uri.html +154 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-valid.html +528 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html +169 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xlink.html +160 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +347 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html +176 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +953 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html +87 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html +186 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +97 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +565 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html +280 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +133 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +314 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +237 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html +217 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html +887 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +292 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +479 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +542 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +787 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html +171 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +3573 -0
- data/vendor/local/share/gtk-doc/html/libxml2/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/style.css +66 -0
- data/vendor/local/share/gtk-doc/html/libxml2/up.png +0 -0
- data/vendor/local/share/license/cairo/AUTHORS +115 -0
- data/vendor/local/share/license/cairo/COPYING +33 -0
- data/vendor/local/share/license/cairo/COPYING-LGPL-2.1 +510 -0
- data/vendor/local/share/license/cairo/COPYING-MPL-1.1 +470 -0
- data/vendor/local/share/license/cairo/README +204 -0
- data/vendor/local/share/license/cairo/README.win32 +66 -0
- data/vendor/local/share/license/fontconfig/AUTHORS +3 -0
- data/vendor/local/share/license/fontconfig/COPYING +28 -0
- data/vendor/local/share/license/fontconfig/README +1484 -0
- data/vendor/local/share/license/freetype/README +83 -0
- data/vendor/local/share/license/freetype/README.git +50 -0
- data/vendor/local/share/license/libpng/README +215 -0
- data/vendor/local/share/license/libxml2/AUTHORS +5 -0
- data/vendor/local/share/license/libxml2/COPYING +23 -0
- data/vendor/local/share/license/libxml2/README +39 -0
- data/vendor/local/share/license/libxml2/README.tests +39 -0
- data/vendor/local/share/license/pixman/AUTHORS +0 -0
- data/vendor/local/share/license/pixman/COPYING +42 -0
- data/vendor/local/share/license/pixman/README +116 -0
- data/vendor/local/share/license/zlib/README +115 -0
- data/vendor/local/share/man/man1/freetype-config.1 +108 -0
- data/vendor/local/share/man/man1/xml2-config.1 +30 -0
- data/vendor/local/share/man/man1/xmlcatalog.1 +340 -0
- data/vendor/local/share/man/man1/xmllint.1 +647 -0
- data/vendor/local/share/man/man3/libpng.3 +6217 -0
- data/vendor/local/share/man/man3/libpngpf.3 +18 -0
- data/vendor/local/share/man/man3/libxml.3 +71 -0
- data/vendor/local/share/man/man5/png.5 +74 -0
- data/vendor/local/share/xml/fontconfig/fonts.dtd +233 -0
- metadata +774 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
#
|
2
|
+
# Configuration file for using the XML library in GNOME applications
|
3
|
+
#
|
4
|
+
XML2_LIBDIR="-L/home/vagrant/rcairo.win64/vendor/local/lib"
|
5
|
+
XML2_LIBS="-lxml2 -lz "
|
6
|
+
XML2_INCLUDEDIR="-I/home/vagrant/rcairo.win64/vendor/local/include/libxml2"
|
7
|
+
MODULE_VERSION="xml2-2.9.2"
|
8
|
+
|
@@ -0,0 +1,194 @@
|
|
1
|
+
# Configure paths for FreeType2
|
2
|
+
# Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor
|
3
|
+
#
|
4
|
+
# Copyright 2001, 2003, 2007, 2009 by
|
5
|
+
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
6
|
+
#
|
7
|
+
# This file is part of the FreeType project, and may only be used, modified,
|
8
|
+
# and distributed under the terms of the FreeType project license,
|
9
|
+
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
10
|
+
# indicate that you have read the license and understand and accept it
|
11
|
+
# fully.
|
12
|
+
#
|
13
|
+
# As a special exception to the FreeType project license, this file may be
|
14
|
+
# distributed as part of a program that contains a configuration script
|
15
|
+
# generated by Autoconf, under the same distribution terms as the rest of
|
16
|
+
# that program.
|
17
|
+
#
|
18
|
+
# serial 3
|
19
|
+
|
20
|
+
# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
21
|
+
# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS.
|
22
|
+
# MINIMUM-VERSION is what libtool reports; the default is `7.0.1' (this is
|
23
|
+
# FreeType 2.0.4).
|
24
|
+
#
|
25
|
+
AC_DEFUN([AC_CHECK_FT2],
|
26
|
+
[# Get the cflags and libraries from the freetype-config script
|
27
|
+
#
|
28
|
+
AC_ARG_WITH([ft-prefix],
|
29
|
+
dnl don't quote AS_HELP_STRING!
|
30
|
+
AS_HELP_STRING([--with-ft-prefix=PREFIX],
|
31
|
+
[Prefix where FreeType is installed (optional)]),
|
32
|
+
[ft_config_prefix="$withval"],
|
33
|
+
[ft_config_prefix=""])
|
34
|
+
|
35
|
+
AC_ARG_WITH([ft-exec-prefix],
|
36
|
+
dnl don't quote AS_HELP_STRING!
|
37
|
+
AS_HELP_STRING([--with-ft-exec-prefix=PREFIX],
|
38
|
+
[Exec prefix where FreeType is installed (optional)]),
|
39
|
+
[ft_config_exec_prefix="$withval"],
|
40
|
+
[ft_config_exec_prefix=""])
|
41
|
+
|
42
|
+
AC_ARG_ENABLE([freetypetest],
|
43
|
+
dnl don't quote AS_HELP_STRING!
|
44
|
+
AS_HELP_STRING([--disable-freetypetest],
|
45
|
+
[Do not try to compile and run a test FreeType program]),
|
46
|
+
[],
|
47
|
+
[enable_fttest=yes])
|
48
|
+
|
49
|
+
if test x$ft_config_exec_prefix != x ; then
|
50
|
+
ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
|
51
|
+
if test x${FT2_CONFIG+set} != xset ; then
|
52
|
+
FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
|
53
|
+
fi
|
54
|
+
fi
|
55
|
+
|
56
|
+
if test x$ft_config_prefix != x ; then
|
57
|
+
ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
|
58
|
+
if test x${FT2_CONFIG+set} != xset ; then
|
59
|
+
FT2_CONFIG=$ft_config_prefix/bin/freetype-config
|
60
|
+
fi
|
61
|
+
fi
|
62
|
+
|
63
|
+
if test "x$FT2_CONFIG" = x ; then
|
64
|
+
AC_PATH_PROG([FT2_CONFIG], [freetype-config], [no])
|
65
|
+
fi
|
66
|
+
|
67
|
+
min_ft_version=m4_if([$1], [], [7.0.1], [$1])
|
68
|
+
AC_MSG_CHECKING([for FreeType -- version >= $min_ft_version])
|
69
|
+
no_ft=""
|
70
|
+
if test "$FT2_CONFIG" = "no" ; then
|
71
|
+
no_ft=yes
|
72
|
+
else
|
73
|
+
FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
|
74
|
+
FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
|
75
|
+
ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
|
76
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
77
|
+
ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
|
78
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
79
|
+
ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
|
80
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
81
|
+
ft_min_major_version=`echo $min_ft_version | \
|
82
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
83
|
+
ft_min_minor_version=`echo $min_ft_version | \
|
84
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
85
|
+
ft_min_micro_version=`echo $min_ft_version | \
|
86
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
87
|
+
if test x$enable_fttest = xyes ; then
|
88
|
+
ft_config_is_lt=""
|
89
|
+
if test $ft_config_major_version -lt $ft_min_major_version ; then
|
90
|
+
ft_config_is_lt=yes
|
91
|
+
else
|
92
|
+
if test $ft_config_major_version -eq $ft_min_major_version ; then
|
93
|
+
if test $ft_config_minor_version -lt $ft_min_minor_version ; then
|
94
|
+
ft_config_is_lt=yes
|
95
|
+
else
|
96
|
+
if test $ft_config_minor_version -eq $ft_min_minor_version ; then
|
97
|
+
if test $ft_config_micro_version -lt $ft_min_micro_version ; then
|
98
|
+
ft_config_is_lt=yes
|
99
|
+
fi
|
100
|
+
fi
|
101
|
+
fi
|
102
|
+
fi
|
103
|
+
fi
|
104
|
+
if test x$ft_config_is_lt = xyes ; then
|
105
|
+
no_ft=yes
|
106
|
+
else
|
107
|
+
ac_save_CFLAGS="$CFLAGS"
|
108
|
+
ac_save_LIBS="$LIBS"
|
109
|
+
CFLAGS="$CFLAGS $FT2_CFLAGS"
|
110
|
+
LIBS="$FT2_LIBS $LIBS"
|
111
|
+
|
112
|
+
#
|
113
|
+
# Sanity checks for the results of freetype-config to some extent.
|
114
|
+
#
|
115
|
+
AC_RUN_IFELSE([
|
116
|
+
AC_LANG_SOURCE([[
|
117
|
+
|
118
|
+
#include <ft2build.h>
|
119
|
+
#include FT_FREETYPE_H
|
120
|
+
#include <stdio.h>
|
121
|
+
#include <stdlib.h>
|
122
|
+
|
123
|
+
int
|
124
|
+
main()
|
125
|
+
{
|
126
|
+
FT_Library library;
|
127
|
+
FT_Error error;
|
128
|
+
|
129
|
+
error = FT_Init_FreeType(&library);
|
130
|
+
|
131
|
+
if (error)
|
132
|
+
return 1;
|
133
|
+
else
|
134
|
+
{
|
135
|
+
FT_Done_FreeType(library);
|
136
|
+
return 0;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
]])
|
141
|
+
],
|
142
|
+
[],
|
143
|
+
[no_ft=yes],
|
144
|
+
[echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"])
|
145
|
+
|
146
|
+
CFLAGS="$ac_save_CFLAGS"
|
147
|
+
LIBS="$ac_save_LIBS"
|
148
|
+
fi # test $ft_config_version -lt $ft_min_version
|
149
|
+
fi # test x$enable_fttest = xyes
|
150
|
+
fi # test "$FT2_CONFIG" = "no"
|
151
|
+
|
152
|
+
if test x$no_ft = x ; then
|
153
|
+
AC_MSG_RESULT([yes])
|
154
|
+
m4_if([$2], [], [:], [$2])
|
155
|
+
else
|
156
|
+
AC_MSG_RESULT([no])
|
157
|
+
if test "$FT2_CONFIG" = "no" ; then
|
158
|
+
AC_MSG_WARN([
|
159
|
+
|
160
|
+
The freetype-config script installed by FreeType 2 could not be found.
|
161
|
+
If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
|
162
|
+
your path, or set the FT2_CONFIG environment variable to the
|
163
|
+
full path to freetype-config.
|
164
|
+
])
|
165
|
+
else
|
166
|
+
if test x$ft_config_is_lt = xyes ; then
|
167
|
+
AC_MSG_WARN([
|
168
|
+
|
169
|
+
Your installed version of the FreeType 2 library is too old.
|
170
|
+
If you have different versions of FreeType 2, make sure that
|
171
|
+
correct values for --with-ft-prefix or --with-ft-exec-prefix
|
172
|
+
are used, or set the FT2_CONFIG environment variable to the
|
173
|
+
full path to freetype-config.
|
174
|
+
])
|
175
|
+
else
|
176
|
+
AC_MSG_WARN([
|
177
|
+
|
178
|
+
The FreeType test program failed to run. If your system uses
|
179
|
+
shared libraries and they are installed outside the normal
|
180
|
+
system library path, make sure the variable LD_LIBRARY_PATH
|
181
|
+
(or whatever is appropriate for your system) is correctly set.
|
182
|
+
])
|
183
|
+
fi
|
184
|
+
fi
|
185
|
+
|
186
|
+
FT2_CFLAGS=""
|
187
|
+
FT2_LIBS=""
|
188
|
+
m4_if([$3], [], [:], [$3])
|
189
|
+
fi
|
190
|
+
|
191
|
+
AC_SUBST([FT2_CFLAGS])
|
192
|
+
AC_SUBST([FT2_LIBS])])
|
193
|
+
|
194
|
+
# end of freetype2.m4
|
@@ -0,0 +1,188 @@
|
|
1
|
+
# Configure paths for LIBXML2
|
2
|
+
# Mike Hommey 2004-06-19
|
3
|
+
# use CPPFLAGS instead of CFLAGS
|
4
|
+
# Toshio Kuratomi 2001-04-21
|
5
|
+
# Adapted from:
|
6
|
+
# Configure paths for GLIB
|
7
|
+
# Owen Taylor 97-11-3
|
8
|
+
|
9
|
+
dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
10
|
+
dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
|
11
|
+
dnl
|
12
|
+
AC_DEFUN([AM_PATH_XML2],[
|
13
|
+
AC_ARG_WITH(xml-prefix,
|
14
|
+
[ --with-xml-prefix=PFX Prefix where libxml is installed (optional)],
|
15
|
+
xml_config_prefix="$withval", xml_config_prefix="")
|
16
|
+
AC_ARG_WITH(xml-exec-prefix,
|
17
|
+
[ --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)],
|
18
|
+
xml_config_exec_prefix="$withval", xml_config_exec_prefix="")
|
19
|
+
AC_ARG_ENABLE(xmltest,
|
20
|
+
[ --disable-xmltest Do not try to compile and run a test LIBXML program],,
|
21
|
+
enable_xmltest=yes)
|
22
|
+
|
23
|
+
if test x$xml_config_exec_prefix != x ; then
|
24
|
+
xml_config_args="$xml_config_args"
|
25
|
+
if test x${XML2_CONFIG+set} != xset ; then
|
26
|
+
XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
|
27
|
+
fi
|
28
|
+
fi
|
29
|
+
if test x$xml_config_prefix != x ; then
|
30
|
+
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
|
31
|
+
if test x${XML2_CONFIG+set} != xset ; then
|
32
|
+
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
|
33
|
+
fi
|
34
|
+
fi
|
35
|
+
|
36
|
+
AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
|
37
|
+
min_xml_version=ifelse([$1], ,2.0.0,[$1])
|
38
|
+
AC_MSG_CHECKING(for libxml - version >= $min_xml_version)
|
39
|
+
no_xml=""
|
40
|
+
if test "$XML2_CONFIG" = "no" ; then
|
41
|
+
no_xml=yes
|
42
|
+
else
|
43
|
+
XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
|
44
|
+
XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
|
45
|
+
xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
|
46
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
47
|
+
xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
|
48
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
49
|
+
xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
|
50
|
+
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
51
|
+
if test "x$enable_xmltest" = "xyes" ; then
|
52
|
+
ac_save_CPPFLAGS="$CPPFLAGS"
|
53
|
+
ac_save_LIBS="$LIBS"
|
54
|
+
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
|
55
|
+
LIBS="$XML_LIBS $LIBS"
|
56
|
+
dnl
|
57
|
+
dnl Now check if the installed libxml is sufficiently new.
|
58
|
+
dnl (Also sanity checks the results of xml2-config to some extent)
|
59
|
+
dnl
|
60
|
+
rm -f conf.xmltest
|
61
|
+
AC_TRY_RUN([
|
62
|
+
#include <stdlib.h>
|
63
|
+
#include <stdio.h>
|
64
|
+
#include <string.h>
|
65
|
+
#include <libxml/xmlversion.h>
|
66
|
+
|
67
|
+
int
|
68
|
+
main()
|
69
|
+
{
|
70
|
+
int xml_major_version, xml_minor_version, xml_micro_version;
|
71
|
+
int major, minor, micro;
|
72
|
+
char *tmp_version;
|
73
|
+
|
74
|
+
system("touch conf.xmltest");
|
75
|
+
|
76
|
+
/* Capture xml2-config output via autoconf/configure variables */
|
77
|
+
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
78
|
+
tmp_version = (char *)strdup("$min_xml_version");
|
79
|
+
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
80
|
+
printf("%s, bad version string from xml2-config\n", "$min_xml_version");
|
81
|
+
exit(1);
|
82
|
+
}
|
83
|
+
free(tmp_version);
|
84
|
+
|
85
|
+
/* Capture the version information from the header files */
|
86
|
+
tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
|
87
|
+
if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
|
88
|
+
printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
|
89
|
+
exit(1);
|
90
|
+
}
|
91
|
+
free(tmp_version);
|
92
|
+
|
93
|
+
/* Compare xml2-config output to the libxml headers */
|
94
|
+
if ((xml_major_version != $xml_config_major_version) ||
|
95
|
+
(xml_minor_version != $xml_config_minor_version) ||
|
96
|
+
(xml_micro_version != $xml_config_micro_version))
|
97
|
+
{
|
98
|
+
printf("*** libxml header files (version %d.%d.%d) do not match\n",
|
99
|
+
xml_major_version, xml_minor_version, xml_micro_version);
|
100
|
+
printf("*** xml2-config (version %d.%d.%d)\n",
|
101
|
+
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
|
102
|
+
return 1;
|
103
|
+
}
|
104
|
+
/* Compare the headers to the library to make sure we match */
|
105
|
+
/* Less than ideal -- doesn't provide us with return value feedback,
|
106
|
+
* only exits if there's a serious mismatch between header and library.
|
107
|
+
*/
|
108
|
+
LIBXML_TEST_VERSION;
|
109
|
+
|
110
|
+
/* Test that the library is greater than our minimum version */
|
111
|
+
if ((xml_major_version > major) ||
|
112
|
+
((xml_major_version == major) && (xml_minor_version > minor)) ||
|
113
|
+
((xml_major_version == major) && (xml_minor_version == minor) &&
|
114
|
+
(xml_micro_version >= micro)))
|
115
|
+
{
|
116
|
+
return 0;
|
117
|
+
}
|
118
|
+
else
|
119
|
+
{
|
120
|
+
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
|
121
|
+
xml_major_version, xml_minor_version, xml_micro_version);
|
122
|
+
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
|
123
|
+
major, minor, micro);
|
124
|
+
printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
|
125
|
+
printf("***\n");
|
126
|
+
printf("*** If you have already installed a sufficiently new version, this error\n");
|
127
|
+
printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
|
128
|
+
printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
129
|
+
printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
|
130
|
+
printf("*** correct copy of xml2-config. (In this case, you will have to\n");
|
131
|
+
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
132
|
+
printf("*** so that the correct libraries are found at run-time))\n");
|
133
|
+
}
|
134
|
+
return 1;
|
135
|
+
}
|
136
|
+
],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
137
|
+
CPPFLAGS="$ac_save_CPPFLAGS"
|
138
|
+
LIBS="$ac_save_LIBS"
|
139
|
+
fi
|
140
|
+
fi
|
141
|
+
|
142
|
+
if test "x$no_xml" = x ; then
|
143
|
+
AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
|
144
|
+
ifelse([$2], , :, [$2])
|
145
|
+
else
|
146
|
+
AC_MSG_RESULT(no)
|
147
|
+
if test "$XML2_CONFIG" = "no" ; then
|
148
|
+
echo "*** The xml2-config script installed by LIBXML could not be found"
|
149
|
+
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
|
150
|
+
echo "*** your path, or set the XML2_CONFIG environment variable to the"
|
151
|
+
echo "*** full path to xml2-config."
|
152
|
+
else
|
153
|
+
if test -f conf.xmltest ; then
|
154
|
+
:
|
155
|
+
else
|
156
|
+
echo "*** Could not run libxml test program, checking why..."
|
157
|
+
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
|
158
|
+
LIBS="$LIBS $XML_LIBS"
|
159
|
+
AC_TRY_LINK([
|
160
|
+
#include <libxml/xmlversion.h>
|
161
|
+
#include <stdio.h>
|
162
|
+
], [ LIBXML_TEST_VERSION; return 0;],
|
163
|
+
[ echo "*** The test program compiled, but did not run. This usually means"
|
164
|
+
echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
|
165
|
+
echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
|
166
|
+
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
167
|
+
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
168
|
+
echo "*** is required on your system"
|
169
|
+
echo "***"
|
170
|
+
echo "*** If you have an old version installed, it is best to remove it, although"
|
171
|
+
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
|
172
|
+
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
173
|
+
echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
|
174
|
+
echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
|
175
|
+
echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
|
176
|
+
CPPFLAGS="$ac_save_CPPFLAGS"
|
177
|
+
LIBS="$ac_save_LIBS"
|
178
|
+
fi
|
179
|
+
fi
|
180
|
+
|
181
|
+
XML_CPPFLAGS=""
|
182
|
+
XML_LIBS=""
|
183
|
+
ifelse([$3], , :, [$3])
|
184
|
+
fi
|
185
|
+
AC_SUBST(XML_CPPFLAGS)
|
186
|
+
AC_SUBST(XML_LIBS)
|
187
|
+
rm -f conf.xmltest
|
188
|
+
])
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Except where otherwise noted in the source code (e.g. the files hash.c,
|
2
|
+
list.c and the trio files, which are covered by a similar licence but
|
3
|
+
with different Copyright notices) all the files are:
|
4
|
+
|
5
|
+
Copyright (C) 1998-2012 Daniel Veillard. All Rights Reserved.
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is fur-
|
12
|
+
nished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
15
|
+
all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
19
|
+
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
THE SOFTWARE.
|
@@ -0,0 +1,880 @@
|
|
1
|
+
/*
|
2
|
+
* testHTML.c : a small tester program for HTML input.
|
3
|
+
*
|
4
|
+
* See Copyright for the status of this software.
|
5
|
+
*
|
6
|
+
* daniel@veillard.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
#include "libxml.h"
|
10
|
+
|
11
|
+
#ifdef LIBXML_HTML_ENABLED
|
12
|
+
|
13
|
+
#include <string.h>
|
14
|
+
#include <stdarg.h>
|
15
|
+
|
16
|
+
|
17
|
+
#ifdef HAVE_SYS_TYPES_H
|
18
|
+
#include <sys/types.h>
|
19
|
+
#endif
|
20
|
+
#ifdef HAVE_SYS_STAT_H
|
21
|
+
#include <sys/stat.h>
|
22
|
+
#endif
|
23
|
+
#ifdef HAVE_FCNTL_H
|
24
|
+
#include <fcntl.h>
|
25
|
+
#endif
|
26
|
+
#ifdef HAVE_UNISTD_H
|
27
|
+
#include <unistd.h>
|
28
|
+
#endif
|
29
|
+
#ifdef HAVE_STDLIB_H
|
30
|
+
#include <stdlib.h>
|
31
|
+
#endif
|
32
|
+
|
33
|
+
#include <libxml/xmlmemory.h>
|
34
|
+
#include <libxml/HTMLparser.h>
|
35
|
+
#include <libxml/HTMLtree.h>
|
36
|
+
#include <libxml/debugXML.h>
|
37
|
+
#include <libxml/xmlerror.h>
|
38
|
+
#include <libxml/globals.h>
|
39
|
+
|
40
|
+
#ifdef LIBXML_DEBUG_ENABLED
|
41
|
+
static int debug = 0;
|
42
|
+
#endif
|
43
|
+
static int copy = 0;
|
44
|
+
static int sax = 0;
|
45
|
+
static int repeat = 0;
|
46
|
+
static int noout = 0;
|
47
|
+
#ifdef LIBXML_PUSH_ENABLED
|
48
|
+
static int push = 0;
|
49
|
+
#endif /* LIBXML_PUSH_ENABLED */
|
50
|
+
static char *encoding = NULL;
|
51
|
+
static int options = 0;
|
52
|
+
|
53
|
+
static xmlSAXHandler emptySAXHandlerStruct = {
|
54
|
+
NULL, /* internalSubset */
|
55
|
+
NULL, /* isStandalone */
|
56
|
+
NULL, /* hasInternalSubset */
|
57
|
+
NULL, /* hasExternalSubset */
|
58
|
+
NULL, /* resolveEntity */
|
59
|
+
NULL, /* getEntity */
|
60
|
+
NULL, /* entityDecl */
|
61
|
+
NULL, /* notationDecl */
|
62
|
+
NULL, /* attributeDecl */
|
63
|
+
NULL, /* elementDecl */
|
64
|
+
NULL, /* unparsedEntityDecl */
|
65
|
+
NULL, /* setDocumentLocator */
|
66
|
+
NULL, /* startDocument */
|
67
|
+
NULL, /* endDocument */
|
68
|
+
NULL, /* startElement */
|
69
|
+
NULL, /* endElement */
|
70
|
+
NULL, /* reference */
|
71
|
+
NULL, /* characters */
|
72
|
+
NULL, /* ignorableWhitespace */
|
73
|
+
NULL, /* processingInstruction */
|
74
|
+
NULL, /* comment */
|
75
|
+
NULL, /* xmlParserWarning */
|
76
|
+
NULL, /* xmlParserError */
|
77
|
+
NULL, /* xmlParserError */
|
78
|
+
NULL, /* getParameterEntity */
|
79
|
+
NULL, /* cdataBlock */
|
80
|
+
NULL, /* externalSubset */
|
81
|
+
1, /* initialized */
|
82
|
+
NULL, /* private */
|
83
|
+
NULL, /* startElementNsSAX2Func */
|
84
|
+
NULL, /* endElementNsSAX2Func */
|
85
|
+
NULL /* xmlStructuredErrorFunc */
|
86
|
+
};
|
87
|
+
|
88
|
+
static xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct;
|
89
|
+
extern xmlSAXHandlerPtr debugSAXHandler;
|
90
|
+
|
91
|
+
/************************************************************************
|
92
|
+
* *
|
93
|
+
* Debug Handlers *
|
94
|
+
* *
|
95
|
+
************************************************************************/
|
96
|
+
|
97
|
+
/**
|
98
|
+
* isStandaloneDebug:
|
99
|
+
* @ctxt: An XML parser context
|
100
|
+
*
|
101
|
+
* Is this document tagged standalone ?
|
102
|
+
*
|
103
|
+
* Returns 1 if true
|
104
|
+
*/
|
105
|
+
static int
|
106
|
+
isStandaloneDebug(void *ctx ATTRIBUTE_UNUSED)
|
107
|
+
{
|
108
|
+
fprintf(stdout, "SAX.isStandalone()\n");
|
109
|
+
return(0);
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* hasInternalSubsetDebug:
|
114
|
+
* @ctxt: An XML parser context
|
115
|
+
*
|
116
|
+
* Does this document has an internal subset
|
117
|
+
*
|
118
|
+
* Returns 1 if true
|
119
|
+
*/
|
120
|
+
static int
|
121
|
+
hasInternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED)
|
122
|
+
{
|
123
|
+
fprintf(stdout, "SAX.hasInternalSubset()\n");
|
124
|
+
return(0);
|
125
|
+
}
|
126
|
+
|
127
|
+
/**
|
128
|
+
* hasExternalSubsetDebug:
|
129
|
+
* @ctxt: An XML parser context
|
130
|
+
*
|
131
|
+
* Does this document has an external subset
|
132
|
+
*
|
133
|
+
* Returns 1 if true
|
134
|
+
*/
|
135
|
+
static int
|
136
|
+
hasExternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED)
|
137
|
+
{
|
138
|
+
fprintf(stdout, "SAX.hasExternalSubset()\n");
|
139
|
+
return(0);
|
140
|
+
}
|
141
|
+
|
142
|
+
/**
|
143
|
+
* hasInternalSubsetDebug:
|
144
|
+
* @ctxt: An XML parser context
|
145
|
+
*
|
146
|
+
* Does this document has an internal subset
|
147
|
+
*/
|
148
|
+
static void
|
149
|
+
internalSubsetDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
150
|
+
const xmlChar *ExternalID, const xmlChar *SystemID)
|
151
|
+
{
|
152
|
+
fprintf(stdout, "SAX.internalSubset(%s,", name);
|
153
|
+
if (ExternalID == NULL)
|
154
|
+
fprintf(stdout, " ,");
|
155
|
+
else
|
156
|
+
fprintf(stdout, " %s,", ExternalID);
|
157
|
+
if (SystemID == NULL)
|
158
|
+
fprintf(stdout, " )\n");
|
159
|
+
else
|
160
|
+
fprintf(stdout, " %s)\n", SystemID);
|
161
|
+
}
|
162
|
+
|
163
|
+
/**
|
164
|
+
* resolveEntityDebug:
|
165
|
+
* @ctxt: An XML parser context
|
166
|
+
* @publicId: The public ID of the entity
|
167
|
+
* @systemId: The system ID of the entity
|
168
|
+
*
|
169
|
+
* Special entity resolver, better left to the parser, it has
|
170
|
+
* more context than the application layer.
|
171
|
+
* The default behaviour is to NOT resolve the entities, in that case
|
172
|
+
* the ENTITY_REF nodes are built in the structure (and the parameter
|
173
|
+
* values).
|
174
|
+
*
|
175
|
+
* Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
|
176
|
+
*/
|
177
|
+
static xmlParserInputPtr
|
178
|
+
resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *publicId, const xmlChar *systemId)
|
179
|
+
{
|
180
|
+
/* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */
|
181
|
+
|
182
|
+
|
183
|
+
fprintf(stdout, "SAX.resolveEntity(");
|
184
|
+
if (publicId != NULL)
|
185
|
+
fprintf(stdout, "%s", (char *)publicId);
|
186
|
+
else
|
187
|
+
fprintf(stdout, " ");
|
188
|
+
if (systemId != NULL)
|
189
|
+
fprintf(stdout, ", %s)\n", (char *)systemId);
|
190
|
+
else
|
191
|
+
fprintf(stdout, ", )\n");
|
192
|
+
/*********
|
193
|
+
if (systemId != NULL) {
|
194
|
+
return(xmlNewInputFromFile(ctxt, (char *) systemId));
|
195
|
+
}
|
196
|
+
*********/
|
197
|
+
return(NULL);
|
198
|
+
}
|
199
|
+
|
200
|
+
/**
|
201
|
+
* getEntityDebug:
|
202
|
+
* @ctxt: An XML parser context
|
203
|
+
* @name: The entity name
|
204
|
+
*
|
205
|
+
* Get an entity by name
|
206
|
+
*
|
207
|
+
* Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
|
208
|
+
*/
|
209
|
+
static xmlEntityPtr
|
210
|
+
getEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
|
211
|
+
{
|
212
|
+
fprintf(stdout, "SAX.getEntity(%s)\n", name);
|
213
|
+
return(NULL);
|
214
|
+
}
|
215
|
+
|
216
|
+
/**
|
217
|
+
* getParameterEntityDebug:
|
218
|
+
* @ctxt: An XML parser context
|
219
|
+
* @name: The entity name
|
220
|
+
*
|
221
|
+
* Get a parameter entity by name
|
222
|
+
*
|
223
|
+
* Returns the xmlParserInputPtr
|
224
|
+
*/
|
225
|
+
static xmlEntityPtr
|
226
|
+
getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
|
227
|
+
{
|
228
|
+
fprintf(stdout, "SAX.getParameterEntity(%s)\n", name);
|
229
|
+
return(NULL);
|
230
|
+
}
|
231
|
+
|
232
|
+
|
233
|
+
/**
|
234
|
+
* entityDeclDebug:
|
235
|
+
* @ctxt: An XML parser context
|
236
|
+
* @name: the entity name
|
237
|
+
* @type: the entity type
|
238
|
+
* @publicId: The public ID of the entity
|
239
|
+
* @systemId: The system ID of the entity
|
240
|
+
* @content: the entity value (without processing).
|
241
|
+
*
|
242
|
+
* An entity definition has been parsed
|
243
|
+
*/
|
244
|
+
static void
|
245
|
+
entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type,
|
246
|
+
const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
|
247
|
+
{
|
248
|
+
fprintf(stdout, "SAX.entityDecl(%s, %d, %s, %s, %s)\n",
|
249
|
+
name, type, publicId, systemId, content);
|
250
|
+
}
|
251
|
+
|
252
|
+
/**
|
253
|
+
* attributeDeclDebug:
|
254
|
+
* @ctxt: An XML parser context
|
255
|
+
* @name: the attribute name
|
256
|
+
* @type: the attribute type
|
257
|
+
*
|
258
|
+
* An attribute definition has been parsed
|
259
|
+
*/
|
260
|
+
static void
|
261
|
+
attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *elem, const xmlChar *name,
|
262
|
+
int type, int def, const xmlChar *defaultValue,
|
263
|
+
xmlEnumerationPtr tree ATTRIBUTE_UNUSED)
|
264
|
+
{
|
265
|
+
fprintf(stdout, "SAX.attributeDecl(%s, %s, %d, %d, %s, ...)\n",
|
266
|
+
elem, name, type, def, defaultValue);
|
267
|
+
}
|
268
|
+
|
269
|
+
/**
|
270
|
+
* elementDeclDebug:
|
271
|
+
* @ctxt: An XML parser context
|
272
|
+
* @name: the element name
|
273
|
+
* @type: the element type
|
274
|
+
* @content: the element value (without processing).
|
275
|
+
*
|
276
|
+
* An element definition has been parsed
|
277
|
+
*/
|
278
|
+
static void
|
279
|
+
elementDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type,
|
280
|
+
xmlElementContentPtr content ATTRIBUTE_UNUSED)
|
281
|
+
{
|
282
|
+
fprintf(stdout, "SAX.elementDecl(%s, %d, ...)\n",
|
283
|
+
name, type);
|
284
|
+
}
|
285
|
+
|
286
|
+
/**
|
287
|
+
* notationDeclDebug:
|
288
|
+
* @ctxt: An XML parser context
|
289
|
+
* @name: The name of the notation
|
290
|
+
* @publicId: The public ID of the entity
|
291
|
+
* @systemId: The system ID of the entity
|
292
|
+
*
|
293
|
+
* What to do when a notation declaration has been parsed.
|
294
|
+
*/
|
295
|
+
static void
|
296
|
+
notationDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
297
|
+
const xmlChar *publicId, const xmlChar *systemId)
|
298
|
+
{
|
299
|
+
fprintf(stdout, "SAX.notationDecl(%s, %s, %s)\n",
|
300
|
+
(char *) name, (char *) publicId, (char *) systemId);
|
301
|
+
}
|
302
|
+
|
303
|
+
/**
|
304
|
+
* unparsedEntityDeclDebug:
|
305
|
+
* @ctxt: An XML parser context
|
306
|
+
* @name: The name of the entity
|
307
|
+
* @publicId: The public ID of the entity
|
308
|
+
* @systemId: The system ID of the entity
|
309
|
+
* @notationName: the name of the notation
|
310
|
+
*
|
311
|
+
* What to do when an unparsed entity declaration is parsed
|
312
|
+
*/
|
313
|
+
static void
|
314
|
+
unparsedEntityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
315
|
+
const xmlChar *publicId, const xmlChar *systemId,
|
316
|
+
const xmlChar *notationName)
|
317
|
+
{
|
318
|
+
fprintf(stdout, "SAX.unparsedEntityDecl(%s, %s, %s, %s)\n",
|
319
|
+
(char *) name, (char *) publicId, (char *) systemId,
|
320
|
+
(char *) notationName);
|
321
|
+
}
|
322
|
+
|
323
|
+
/**
|
324
|
+
* setDocumentLocatorDebug:
|
325
|
+
* @ctxt: An XML parser context
|
326
|
+
* @loc: A SAX Locator
|
327
|
+
*
|
328
|
+
* Receive the document locator at startup, actually xmlDefaultSAXLocator
|
329
|
+
* Everything is available on the context, so this is useless in our case.
|
330
|
+
*/
|
331
|
+
static void
|
332
|
+
setDocumentLocatorDebug(void *ctx ATTRIBUTE_UNUSED, xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED)
|
333
|
+
{
|
334
|
+
fprintf(stdout, "SAX.setDocumentLocator()\n");
|
335
|
+
}
|
336
|
+
|
337
|
+
/**
|
338
|
+
* startDocumentDebug:
|
339
|
+
* @ctxt: An XML parser context
|
340
|
+
*
|
341
|
+
* called when the document start being processed.
|
342
|
+
*/
|
343
|
+
static void
|
344
|
+
startDocumentDebug(void *ctx ATTRIBUTE_UNUSED)
|
345
|
+
{
|
346
|
+
fprintf(stdout, "SAX.startDocument()\n");
|
347
|
+
}
|
348
|
+
|
349
|
+
/**
|
350
|
+
* endDocumentDebug:
|
351
|
+
* @ctxt: An XML parser context
|
352
|
+
*
|
353
|
+
* called when the document end has been detected.
|
354
|
+
*/
|
355
|
+
static void
|
356
|
+
endDocumentDebug(void *ctx ATTRIBUTE_UNUSED)
|
357
|
+
{
|
358
|
+
fprintf(stdout, "SAX.endDocument()\n");
|
359
|
+
}
|
360
|
+
|
361
|
+
/**
|
362
|
+
* startElementDebug:
|
363
|
+
* @ctxt: An XML parser context
|
364
|
+
* @name: The element name
|
365
|
+
*
|
366
|
+
* called when an opening tag has been processed.
|
367
|
+
*/
|
368
|
+
static void
|
369
|
+
startElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar **atts)
|
370
|
+
{
|
371
|
+
int i;
|
372
|
+
|
373
|
+
fprintf(stdout, "SAX.startElement(%s", (char *) name);
|
374
|
+
if (atts != NULL) {
|
375
|
+
for (i = 0;(atts[i] != NULL);i++) {
|
376
|
+
fprintf(stdout, ", %s", atts[i++]);
|
377
|
+
if (atts[i] != NULL) {
|
378
|
+
unsigned char output[40];
|
379
|
+
const unsigned char *att = atts[i];
|
380
|
+
int outlen, attlen;
|
381
|
+
fprintf(stdout, "='");
|
382
|
+
while ((attlen = strlen((char*)att)) > 0) {
|
383
|
+
outlen = sizeof output - 1;
|
384
|
+
htmlEncodeEntities(output, &outlen, att, &attlen, '\'');
|
385
|
+
output[outlen] = 0;
|
386
|
+
fprintf(stdout, "%s", (char *) output);
|
387
|
+
att += attlen;
|
388
|
+
}
|
389
|
+
fprintf(stdout, "'");
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
fprintf(stdout, ")\n");
|
394
|
+
}
|
395
|
+
|
396
|
+
/**
|
397
|
+
* endElementDebug:
|
398
|
+
* @ctxt: An XML parser context
|
399
|
+
* @name: The element name
|
400
|
+
*
|
401
|
+
* called when the end of an element has been detected.
|
402
|
+
*/
|
403
|
+
static void
|
404
|
+
endElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
|
405
|
+
{
|
406
|
+
fprintf(stdout, "SAX.endElement(%s)\n", (char *) name);
|
407
|
+
}
|
408
|
+
|
409
|
+
/**
|
410
|
+
* charactersDebug:
|
411
|
+
* @ctxt: An XML parser context
|
412
|
+
* @ch: a xmlChar string
|
413
|
+
* @len: the number of xmlChar
|
414
|
+
*
|
415
|
+
* receiving some chars from the parser.
|
416
|
+
* Question: how much at a time ???
|
417
|
+
*/
|
418
|
+
static void
|
419
|
+
charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
|
420
|
+
{
|
421
|
+
unsigned char output[40];
|
422
|
+
int inlen = len, outlen = 30;
|
423
|
+
|
424
|
+
htmlEncodeEntities(output, &outlen, ch, &inlen, 0);
|
425
|
+
output[outlen] = 0;
|
426
|
+
|
427
|
+
fprintf(stdout, "SAX.characters(%s, %d)\n", output, len);
|
428
|
+
}
|
429
|
+
|
430
|
+
/**
|
431
|
+
* cdataDebug:
|
432
|
+
* @ctxt: An XML parser context
|
433
|
+
* @ch: a xmlChar string
|
434
|
+
* @len: the number of xmlChar
|
435
|
+
*
|
436
|
+
* receiving some cdata chars from the parser.
|
437
|
+
* Question: how much at a time ???
|
438
|
+
*/
|
439
|
+
static void
|
440
|
+
cdataDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
|
441
|
+
{
|
442
|
+
unsigned char output[40];
|
443
|
+
int inlen = len, outlen = 30;
|
444
|
+
|
445
|
+
htmlEncodeEntities(output, &outlen, ch, &inlen, 0);
|
446
|
+
output[outlen] = 0;
|
447
|
+
|
448
|
+
fprintf(stdout, "SAX.cdata(%s, %d)\n", output, len);
|
449
|
+
}
|
450
|
+
|
451
|
+
/**
|
452
|
+
* referenceDebug:
|
453
|
+
* @ctxt: An XML parser context
|
454
|
+
* @name: The entity name
|
455
|
+
*
|
456
|
+
* called when an entity reference is detected.
|
457
|
+
*/
|
458
|
+
static void
|
459
|
+
referenceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
|
460
|
+
{
|
461
|
+
fprintf(stdout, "SAX.reference(%s)\n", name);
|
462
|
+
}
|
463
|
+
|
464
|
+
/**
|
465
|
+
* ignorableWhitespaceDebug:
|
466
|
+
* @ctxt: An XML parser context
|
467
|
+
* @ch: a xmlChar string
|
468
|
+
* @start: the first char in the string
|
469
|
+
* @len: the number of xmlChar
|
470
|
+
*
|
471
|
+
* receiving some ignorable whitespaces from the parser.
|
472
|
+
* Question: how much at a time ???
|
473
|
+
*/
|
474
|
+
static void
|
475
|
+
ignorableWhitespaceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
|
476
|
+
{
|
477
|
+
char output[40];
|
478
|
+
int i;
|
479
|
+
|
480
|
+
for (i = 0;(i<len) && (i < 30);i++)
|
481
|
+
output[i] = ch[i];
|
482
|
+
output[i] = 0;
|
483
|
+
|
484
|
+
fprintf(stdout, "SAX.ignorableWhitespace(%s, %d)\n", output, len);
|
485
|
+
}
|
486
|
+
|
487
|
+
/**
|
488
|
+
* processingInstructionDebug:
|
489
|
+
* @ctxt: An XML parser context
|
490
|
+
* @target: the target name
|
491
|
+
* @data: the PI data's
|
492
|
+
* @len: the number of xmlChar
|
493
|
+
*
|
494
|
+
* A processing instruction has been parsed.
|
495
|
+
*/
|
496
|
+
static void
|
497
|
+
processingInstructionDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *target,
|
498
|
+
const xmlChar *data)
|
499
|
+
{
|
500
|
+
fprintf(stdout, "SAX.processingInstruction(%s, %s)\n",
|
501
|
+
(char *) target, (char *) data);
|
502
|
+
}
|
503
|
+
|
504
|
+
/**
|
505
|
+
* commentDebug:
|
506
|
+
* @ctxt: An XML parser context
|
507
|
+
* @value: the comment content
|
508
|
+
*
|
509
|
+
* A comment has been parsed.
|
510
|
+
*/
|
511
|
+
static void
|
512
|
+
commentDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
|
513
|
+
{
|
514
|
+
fprintf(stdout, "SAX.comment(%s)\n", value);
|
515
|
+
}
|
516
|
+
|
517
|
+
/**
|
518
|
+
* warningDebug:
|
519
|
+
* @ctxt: An XML parser context
|
520
|
+
* @msg: the message to display/transmit
|
521
|
+
* @...: extra parameters for the message display
|
522
|
+
*
|
523
|
+
* Display and format a warning messages, gives file, line, position and
|
524
|
+
* extra parameters.
|
525
|
+
*/
|
526
|
+
static void XMLCDECL
|
527
|
+
warningDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...)
|
528
|
+
{
|
529
|
+
va_list args;
|
530
|
+
|
531
|
+
va_start(args, msg);
|
532
|
+
fprintf(stdout, "SAX.warning: ");
|
533
|
+
vfprintf(stdout, msg, args);
|
534
|
+
va_end(args);
|
535
|
+
}
|
536
|
+
|
537
|
+
/**
|
538
|
+
* errorDebug:
|
539
|
+
* @ctxt: An XML parser context
|
540
|
+
* @msg: the message to display/transmit
|
541
|
+
* @...: extra parameters for the message display
|
542
|
+
*
|
543
|
+
* Display and format a error messages, gives file, line, position and
|
544
|
+
* extra parameters.
|
545
|
+
*/
|
546
|
+
static void XMLCDECL
|
547
|
+
errorDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...)
|
548
|
+
{
|
549
|
+
va_list args;
|
550
|
+
|
551
|
+
va_start(args, msg);
|
552
|
+
fprintf(stdout, "SAX.error: ");
|
553
|
+
vfprintf(stdout, msg, args);
|
554
|
+
va_end(args);
|
555
|
+
}
|
556
|
+
|
557
|
+
/**
|
558
|
+
* fatalErrorDebug:
|
559
|
+
* @ctxt: An XML parser context
|
560
|
+
* @msg: the message to display/transmit
|
561
|
+
* @...: extra parameters for the message display
|
562
|
+
*
|
563
|
+
* Display and format a fatalError messages, gives file, line, position and
|
564
|
+
* extra parameters.
|
565
|
+
*/
|
566
|
+
static void XMLCDECL
|
567
|
+
fatalErrorDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...)
|
568
|
+
{
|
569
|
+
va_list args;
|
570
|
+
|
571
|
+
va_start(args, msg);
|
572
|
+
fprintf(stdout, "SAX.fatalError: ");
|
573
|
+
vfprintf(stdout, msg, args);
|
574
|
+
va_end(args);
|
575
|
+
}
|
576
|
+
|
577
|
+
static xmlSAXHandler debugSAXHandlerStruct = {
|
578
|
+
internalSubsetDebug,
|
579
|
+
isStandaloneDebug,
|
580
|
+
hasInternalSubsetDebug,
|
581
|
+
hasExternalSubsetDebug,
|
582
|
+
resolveEntityDebug,
|
583
|
+
getEntityDebug,
|
584
|
+
entityDeclDebug,
|
585
|
+
notationDeclDebug,
|
586
|
+
attributeDeclDebug,
|
587
|
+
elementDeclDebug,
|
588
|
+
unparsedEntityDeclDebug,
|
589
|
+
setDocumentLocatorDebug,
|
590
|
+
startDocumentDebug,
|
591
|
+
endDocumentDebug,
|
592
|
+
startElementDebug,
|
593
|
+
endElementDebug,
|
594
|
+
referenceDebug,
|
595
|
+
charactersDebug,
|
596
|
+
ignorableWhitespaceDebug,
|
597
|
+
processingInstructionDebug,
|
598
|
+
commentDebug,
|
599
|
+
warningDebug,
|
600
|
+
errorDebug,
|
601
|
+
fatalErrorDebug,
|
602
|
+
getParameterEntityDebug,
|
603
|
+
cdataDebug,
|
604
|
+
NULL,
|
605
|
+
1,
|
606
|
+
NULL,
|
607
|
+
NULL,
|
608
|
+
NULL,
|
609
|
+
NULL
|
610
|
+
};
|
611
|
+
|
612
|
+
xmlSAXHandlerPtr debugSAXHandler = &debugSAXHandlerStruct;
|
613
|
+
/************************************************************************
|
614
|
+
* *
|
615
|
+
* Debug *
|
616
|
+
* *
|
617
|
+
************************************************************************/
|
618
|
+
|
619
|
+
static void
|
620
|
+
parseSAXFile(char *filename) {
|
621
|
+
htmlDocPtr doc = NULL;
|
622
|
+
|
623
|
+
/*
|
624
|
+
* Empty callbacks for checking
|
625
|
+
*/
|
626
|
+
#ifdef LIBXML_PUSH_ENABLED
|
627
|
+
if (push) {
|
628
|
+
FILE *f;
|
629
|
+
|
630
|
+
#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
|
631
|
+
f = fopen(filename, "rb");
|
632
|
+
#else
|
633
|
+
f = fopen(filename, "r");
|
634
|
+
#endif
|
635
|
+
if (f != NULL) {
|
636
|
+
int res, size = 3;
|
637
|
+
char chars[4096];
|
638
|
+
htmlParserCtxtPtr ctxt;
|
639
|
+
|
640
|
+
/* if (repeat) */
|
641
|
+
size = 4096;
|
642
|
+
res = fread(chars, 1, 4, f);
|
643
|
+
if (res > 0) {
|
644
|
+
ctxt = htmlCreatePushParserCtxt(emptySAXHandler, NULL,
|
645
|
+
chars, res, filename, XML_CHAR_ENCODING_NONE);
|
646
|
+
while ((res = fread(chars, 1, size, f)) > 0) {
|
647
|
+
htmlParseChunk(ctxt, chars, res, 0);
|
648
|
+
}
|
649
|
+
htmlParseChunk(ctxt, chars, 0, 1);
|
650
|
+
doc = ctxt->myDoc;
|
651
|
+
htmlFreeParserCtxt(ctxt);
|
652
|
+
}
|
653
|
+
if (doc != NULL) {
|
654
|
+
fprintf(stdout, "htmlSAXParseFile returned non-NULL\n");
|
655
|
+
xmlFreeDoc(doc);
|
656
|
+
}
|
657
|
+
fclose(f);
|
658
|
+
}
|
659
|
+
if (!noout) {
|
660
|
+
#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
|
661
|
+
f = fopen(filename, "rb");
|
662
|
+
#else
|
663
|
+
f = fopen(filename, "r");
|
664
|
+
#endif
|
665
|
+
if (f != NULL) {
|
666
|
+
int res, size = 3;
|
667
|
+
char chars[4096];
|
668
|
+
htmlParserCtxtPtr ctxt;
|
669
|
+
|
670
|
+
/* if (repeat) */
|
671
|
+
size = 4096;
|
672
|
+
res = fread(chars, 1, 4, f);
|
673
|
+
if (res > 0) {
|
674
|
+
ctxt = htmlCreatePushParserCtxt(debugSAXHandler, NULL,
|
675
|
+
chars, res, filename, XML_CHAR_ENCODING_NONE);
|
676
|
+
while ((res = fread(chars, 1, size, f)) > 0) {
|
677
|
+
htmlParseChunk(ctxt, chars, res, 0);
|
678
|
+
}
|
679
|
+
htmlParseChunk(ctxt, chars, 0, 1);
|
680
|
+
doc = ctxt->myDoc;
|
681
|
+
htmlFreeParserCtxt(ctxt);
|
682
|
+
}
|
683
|
+
if (doc != NULL) {
|
684
|
+
fprintf(stdout, "htmlSAXParseFile returned non-NULL\n");
|
685
|
+
xmlFreeDoc(doc);
|
686
|
+
}
|
687
|
+
fclose(f);
|
688
|
+
}
|
689
|
+
}
|
690
|
+
} else {
|
691
|
+
#endif /* LIBXML_PUSH_ENABLED */
|
692
|
+
doc = htmlSAXParseFile(filename, NULL, emptySAXHandler, NULL);
|
693
|
+
if (doc != NULL) {
|
694
|
+
fprintf(stdout, "htmlSAXParseFile returned non-NULL\n");
|
695
|
+
xmlFreeDoc(doc);
|
696
|
+
}
|
697
|
+
|
698
|
+
if (!noout) {
|
699
|
+
/*
|
700
|
+
* Debug callback
|
701
|
+
*/
|
702
|
+
doc = htmlSAXParseFile(filename, NULL, debugSAXHandler, NULL);
|
703
|
+
if (doc != NULL) {
|
704
|
+
fprintf(stdout, "htmlSAXParseFile returned non-NULL\n");
|
705
|
+
xmlFreeDoc(doc);
|
706
|
+
}
|
707
|
+
}
|
708
|
+
#ifdef LIBXML_PUSH_ENABLED
|
709
|
+
}
|
710
|
+
#endif /* LIBXML_PUSH_ENABLED */
|
711
|
+
}
|
712
|
+
|
713
|
+
static void
|
714
|
+
parseAndPrintFile(char *filename) {
|
715
|
+
htmlDocPtr doc = NULL;
|
716
|
+
|
717
|
+
/*
|
718
|
+
* build an HTML tree from a string;
|
719
|
+
*/
|
720
|
+
#ifdef LIBXML_PUSH_ENABLED
|
721
|
+
if (push) {
|
722
|
+
FILE *f;
|
723
|
+
|
724
|
+
#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
|
725
|
+
f = fopen(filename, "rb");
|
726
|
+
#else
|
727
|
+
f = fopen(filename, "r");
|
728
|
+
#endif
|
729
|
+
if (f != NULL) {
|
730
|
+
int res, size = 3;
|
731
|
+
char chars[4096];
|
732
|
+
htmlParserCtxtPtr ctxt;
|
733
|
+
|
734
|
+
/* if (repeat) */
|
735
|
+
size = 4096;
|
736
|
+
res = fread(chars, 1, 4, f);
|
737
|
+
if (res > 0) {
|
738
|
+
ctxt = htmlCreatePushParserCtxt(NULL, NULL,
|
739
|
+
chars, res, filename, XML_CHAR_ENCODING_NONE);
|
740
|
+
while ((res = fread(chars, 1, size, f)) > 0) {
|
741
|
+
htmlParseChunk(ctxt, chars, res, 0);
|
742
|
+
}
|
743
|
+
htmlParseChunk(ctxt, chars, 0, 1);
|
744
|
+
doc = ctxt->myDoc;
|
745
|
+
htmlFreeParserCtxt(ctxt);
|
746
|
+
}
|
747
|
+
fclose(f);
|
748
|
+
}
|
749
|
+
} else {
|
750
|
+
doc = htmlReadFile(filename, NULL, options);
|
751
|
+
}
|
752
|
+
#else
|
753
|
+
doc = htmlReadFile(filename,NULL,options);
|
754
|
+
#endif
|
755
|
+
if (doc == NULL) {
|
756
|
+
xmlGenericError(xmlGenericErrorContext,
|
757
|
+
"Could not parse %s\n", filename);
|
758
|
+
}
|
759
|
+
|
760
|
+
#ifdef LIBXML_TREE_ENABLED
|
761
|
+
/*
|
762
|
+
* test intermediate copy if needed.
|
763
|
+
*/
|
764
|
+
if (copy) {
|
765
|
+
htmlDocPtr tmp;
|
766
|
+
|
767
|
+
tmp = doc;
|
768
|
+
doc = xmlCopyDoc(doc, 1);
|
769
|
+
xmlFreeDoc(tmp);
|
770
|
+
}
|
771
|
+
#endif
|
772
|
+
|
773
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
774
|
+
/*
|
775
|
+
* print it.
|
776
|
+
*/
|
777
|
+
if (!noout) {
|
778
|
+
#ifdef LIBXML_DEBUG_ENABLED
|
779
|
+
if (!debug) {
|
780
|
+
if (encoding)
|
781
|
+
htmlSaveFileEnc("-", doc, encoding);
|
782
|
+
else
|
783
|
+
htmlDocDump(stdout, doc);
|
784
|
+
} else
|
785
|
+
xmlDebugDumpDocument(stdout, doc);
|
786
|
+
#else
|
787
|
+
if (encoding)
|
788
|
+
htmlSaveFileEnc("-", doc, encoding);
|
789
|
+
else
|
790
|
+
htmlDocDump(stdout, doc);
|
791
|
+
#endif
|
792
|
+
}
|
793
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
794
|
+
|
795
|
+
/*
|
796
|
+
* free it.
|
797
|
+
*/
|
798
|
+
xmlFreeDoc(doc);
|
799
|
+
}
|
800
|
+
|
801
|
+
int main(int argc, char **argv) {
|
802
|
+
int i, count;
|
803
|
+
int files = 0;
|
804
|
+
|
805
|
+
for (i = 1; i < argc ; i++) {
|
806
|
+
#ifdef LIBXML_DEBUG_ENABLED
|
807
|
+
if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
|
808
|
+
debug++;
|
809
|
+
else
|
810
|
+
#endif
|
811
|
+
if ((!strcmp(argv[i], "-copy")) || (!strcmp(argv[i], "--copy")))
|
812
|
+
copy++;
|
813
|
+
#ifdef LIBXML_PUSH_ENABLED
|
814
|
+
else if ((!strcmp(argv[i], "-push")) || (!strcmp(argv[i], "--push")))
|
815
|
+
push++;
|
816
|
+
#endif /* LIBXML_PUSH_ENABLED */
|
817
|
+
else if ((!strcmp(argv[i], "-sax")) || (!strcmp(argv[i], "--sax")))
|
818
|
+
sax++;
|
819
|
+
else if ((!strcmp(argv[i], "-noout")) || (!strcmp(argv[i], "--noout")))
|
820
|
+
noout++;
|
821
|
+
else if ((!strcmp(argv[i], "-repeat")) ||
|
822
|
+
(!strcmp(argv[i], "--repeat")))
|
823
|
+
repeat++;
|
824
|
+
else if ((!strcmp(argv[i], "-encode")) ||
|
825
|
+
(!strcmp(argv[i], "--encode"))) {
|
826
|
+
i++;
|
827
|
+
encoding = argv[i];
|
828
|
+
}
|
829
|
+
}
|
830
|
+
for (i = 1; i < argc ; i++) {
|
831
|
+
if ((!strcmp(argv[i], "-encode")) ||
|
832
|
+
(!strcmp(argv[i], "--encode"))) {
|
833
|
+
i++;
|
834
|
+
continue;
|
835
|
+
}
|
836
|
+
if (argv[i][0] != '-') {
|
837
|
+
if (repeat) {
|
838
|
+
for (count = 0;count < 100 * repeat;count++) {
|
839
|
+
if (sax)
|
840
|
+
parseSAXFile(argv[i]);
|
841
|
+
else
|
842
|
+
parseAndPrintFile(argv[i]);
|
843
|
+
}
|
844
|
+
} else {
|
845
|
+
if (sax)
|
846
|
+
parseSAXFile(argv[i]);
|
847
|
+
else
|
848
|
+
parseAndPrintFile(argv[i]);
|
849
|
+
}
|
850
|
+
files ++;
|
851
|
+
}
|
852
|
+
}
|
853
|
+
if (files == 0) {
|
854
|
+
printf("Usage : %s [--debug] [--copy] [--copy] HTMLfiles ...\n",
|
855
|
+
argv[0]);
|
856
|
+
printf("\tParse the HTML files and output the result of the parsing\n");
|
857
|
+
#ifdef LIBXML_DEBUG_ENABLED
|
858
|
+
printf("\t--debug : dump a debug tree of the in-memory document\n");
|
859
|
+
#endif
|
860
|
+
printf("\t--copy : used to test the internal copy implementation\n");
|
861
|
+
printf("\t--sax : debug the sequence of SAX callbacks\n");
|
862
|
+
printf("\t--repeat : parse the file 100 times, for timing\n");
|
863
|
+
printf("\t--noout : do not print the result\n");
|
864
|
+
#ifdef LIBXML_PUSH_ENABLED
|
865
|
+
printf("\t--push : use the push mode parser\n");
|
866
|
+
#endif /* LIBXML_PUSH_ENABLED */
|
867
|
+
printf("\t--encode encoding : output in the given encoding\n");
|
868
|
+
}
|
869
|
+
xmlCleanupParser();
|
870
|
+
xmlMemoryDump();
|
871
|
+
|
872
|
+
return(0);
|
873
|
+
}
|
874
|
+
#else /* !LIBXML_HTML_ENABLED */
|
875
|
+
#include <stdio.h>
|
876
|
+
int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
877
|
+
printf("%s : HTML support not compiled in\n", argv[0]);
|
878
|
+
return(0);
|
879
|
+
}
|
880
|
+
#endif
|