apex-ruby 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -8
  3. data/apex-ruby.gemspec +14 -3
  4. data/ext/apex_ext/apex_src/include/apex/apex.h +11 -2
  5. data/ext/apex_ext/apex_src/src/apex.c +64 -5
  6. data/ext/apex_ext/apex_src/src/ast_terminal.c +2 -4
  7. data/ext/apex_ext/apex_src/src/extensions/callouts.c +103 -63
  8. data/ext/apex_ext/apex_src/src/extensions/callouts.h +3 -2
  9. data/ext/apex_ext/apex_src/src/extensions/citations.c +15 -2
  10. data/ext/apex_ext/apex_src/src/extensions/emoji.c +73 -7
  11. data/ext/apex_ext/apex_src/src/extensions/html_markdown.c +25 -4
  12. data/ext/apex_ext/apex_src/src/extensions/html_markdown.h +4 -1
  13. data/ext/apex_ext/apex_src/src/extensions/insert.c +49 -0
  14. data/ext/apex_ext/apex_src/src/extensions/metadata.c +275 -55
  15. data/ext/apex_ext/apex_src/src/extensions/metadata.h +9 -0
  16. data/ext/apex_ext/apex_src/src/extensions/relaxed_tables.c +172 -254
  17. data/ext/apex_ext/apex_src/src/extensions/table_html_postprocess.c +36 -127
  18. data/ext/apex_ext/apex_src/src/html_renderer.c +99 -157
  19. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/table.c +7 -0
  20. data/ext/apex_ext/extconf.rb +31 -79
  21. data/lib/apex/version.rb +1 -1
  22. metadata +1 -469
  23. data/ext/apex_ext/apex_src/AGENTS.md +0 -41
  24. data/ext/apex_ext/apex_src/BENCHMARK.md +0 -32
  25. data/ext/apex_ext/apex_src/BENCHMARK_COMPARISON.md +0 -67
  26. data/ext/apex_ext/apex_src/CHANGELOG.md +0 -3373
  27. data/ext/apex_ext/apex_src/CMakeLists.txt +0 -481
  28. data/ext/apex_ext/apex_src/Dockerfile.linux-build +0 -15
  29. data/ext/apex_ext/apex_src/Formula/apex.rb +0 -43
  30. data/ext/apex_ext/apex_src/Info.plist.in +0 -27
  31. data/ext/apex_ext/apex_src/Package.swift +0 -192
  32. data/ext/apex_ext/apex_src/PackageSupport/README.md +0 -17
  33. data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/cmark_gfm_spm_stub.c +0 -4
  34. data/ext/apex_ext/apex_src/README.md +0 -536
  35. data/ext/apex_ext/apex_src/ROADMAP.md +0 -5
  36. data/ext/apex_ext/apex_src/VERSION +0 -1
  37. data/ext/apex_ext/apex_src/apex-debug.log +0 -4
  38. data/ext/apex_ext/apex_src/apex-header-2-rb@2x.webp +0 -0
  39. data/ext/apex_ext/apex_src/apex-plugins.json.example +0 -20
  40. data/ext/apex_ext/apex_src/apex.code-workspace +0 -38
  41. data/ext/apex_ext/apex_src/apex.pc.in +0 -11
  42. data/ext/apex_ext/apex_src/apex.taskpaper +0 -12
  43. data/ext/apex_ext/apex_src/apex_deflist_debug.log +0 -25
  44. data/ext/apex_ext/apex_src/buildnotes.md +0 -1435
  45. data/ext/apex_ext/apex_src/cli/main.c +0 -4588
  46. data/ext/apex_ext/apex_src/debug.log +0 -7
  47. data/ext/apex_ext/apex_src/debug_test.sh +0 -22
  48. data/ext/apex_ext/apex_src/docs/API_REFERENCE.md +0 -451
  49. data/ext/apex_ext/apex_src/docs/ARCHITECTURE.md +0 -166
  50. data/ext/apex_ext/apex_src/docs/CITATIONS_EXAMPLES.md +0 -274
  51. data/ext/apex_ext/apex_src/docs/CITATIONS_IMPLEMENTATION_PLAN.md +0 -749
  52. data/ext/apex_ext/apex_src/docs/CITATIONS_PLAN.md +0 -744
  53. data/ext/apex_ext/apex_src/docs/CMARK_INTEGRATION.md +0 -220
  54. data/ext/apex_ext/apex_src/docs/CRITICMARKUP.md +0 -501
  55. data/ext/apex_ext/apex_src/docs/DEBUGGING.md +0 -73
  56. data/ext/apex_ext/apex_src/docs/FINAL_STATUS.md +0 -391
  57. data/ext/apex_ext/apex_src/docs/FINAL_STATUS_UPDATE.md +0 -237
  58. data/ext/apex_ext/apex_src/docs/IAL_FEATURES.md +0 -210
  59. data/ext/apex_ext/apex_src/docs/IAL_STATUS.md +0 -344
  60. data/ext/apex_ext/apex_src/docs/INDEX_IMPLEMENTATION_ANALYSIS.md +0 -382
  61. data/ext/apex_ext/apex_src/docs/INTEGRATION_EXAMPLE.m +0 -144
  62. data/ext/apex_ext/apex_src/docs/LIMITATIONS_RESOLVED.md +0 -278
  63. data/ext/apex_ext/apex_src/docs/OUTPUT_MODES.md +0 -321
  64. data/ext/apex_ext/apex_src/docs/PROGRESS.md +0 -167
  65. data/ext/apex_ext/apex_src/docs/STANDALONE_FEATURE.md +0 -174
  66. data/ext/apex_ext/apex_src/docs/TABLE_SPANS_STATUS.md +0 -243
  67. data/ext/apex_ext/apex_src/docs/TEST_COVERAGE.md +0 -316
  68. data/ext/apex_ext/apex_src/docs/USER_GUIDE.md +0 -803
  69. data/ext/apex_ext/apex_src/docs/WIKI_LINKS_ISSUE.md +0 -91
  70. data/ext/apex_ext/apex_src/docs/index.md +0 -459
  71. data/ext/apex_ext/apex_src/docs/plans/2025-02-27-man-page-output-implementation.md +0 -351
  72. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-12-toc-output-format.md +0 -745
  73. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-18-bear-image-attributes.md +0 -829
  74. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-19-apex-node-npm.md +0 -1148
  75. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-12-toc-output-format-design.md +0 -161
  76. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-18-bear-image-attributes-design.md +0 -184
  77. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-19-apex-node-npm-design.md +0 -211
  78. data/ext/apex_ext/apex_src/documentation/README.md +0 -160
  79. data/ext/apex_ext/apex_src/documentation/app-settings-table.md +0 -67
  80. data/ext/apex_ext/apex_src/documentation/app-transformed/Citations.md +0 -340
  81. data/ext/apex_ext/apex_src/documentation/app-transformed/Credits.md +0 -11
  82. data/ext/apex_ext/apex_src/documentation/app-transformed/Header-IDs.md +0 -234
  83. data/ext/apex_ext/apex_src/documentation/app-transformed/Inline-Attribute-Lists.md +0 -516
  84. data/ext/apex_ext/apex_src/documentation/app-transformed/Metadata-Transforms.md +0 -461
  85. data/ext/apex_ext/apex_src/documentation/app-transformed/Modes.md +0 -193
  86. data/ext/apex_ext/apex_src/documentation/app-transformed/Multi-File-Documents.md +0 -201
  87. data/ext/apex_ext/apex_src/documentation/app-transformed/Plugins.md +0 -678
  88. data/ext/apex_ext/apex_src/documentation/app-transformed/Syntax.md +0 -1367
  89. data/ext/apex_ext/apex_src/documentation/docsets/Apex Command Line Options.cheatsheet.txt +0 -371
  90. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Info.plist +0 -24
  91. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/C-API.html +0 -2211
  92. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Callouts.html +0 -1194
  93. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Citations.html +0 -1620
  94. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Command-Line-Options.html +0 -6024
  95. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Configuration.html +0 -1877
  96. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Credits.html +0 -1040
  97. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Examples.html +0 -1402
  98. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Filters.html +0 -1656
  99. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Generating-Man-Pages.html +0 -1226
  100. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Getting-Started.html +0 -1148
  101. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Header-IDs.html +0 -1478
  102. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Home.html +0 -1225
  103. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Indices.html +0 -2327
  104. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Inline-Attribute-Lists.html +0 -2041
  105. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Installation.html +0 -1314
  106. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Limitations-and-Roadmap.html +0 -1868
  107. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Metadata-Transforms.html +0 -1731
  108. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Modes.html +0 -2242
  109. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-File-Documents.html +0 -1533
  110. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-Format-Images.html +0 -1362
  111. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Pandoc-Integration.html +0 -1338
  112. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Plugins.html +0 -3188
  113. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Quarto-Mode.html +0 -1405
  114. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Rendering-Markdown-In-Terminal.html +0 -1902
  115. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Syntax.html +0 -4222
  116. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Tables.html +0 -1781
  117. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Troubleshooting.html +0 -1629
  118. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Usage.html +0 -1394
  119. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Using-Apex-with-Jekyll.html +0 -1132
  120. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Writing-Tests.html +0 -1754
  121. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Xcode-Integration.html +0 -2562
  122. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/docSet.dsidx +0 -0
  123. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
  124. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Info.plist +0 -22
  125. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans.woff +0 -0
  126. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Bold.woff +0 -0
  127. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Bold_Italic.woff +0 -0
  128. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Extrabold.woff +0 -0
  129. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Extrabold_Italic.woff +0 -0
  130. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Italic.woff +0 -0
  131. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Semibold.woff +0 -0
  132. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Semibold_Italic.woff +0 -0
  133. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/index.html +0 -914
  134. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/style.css +0 -399
  135. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/docSet.dsidx +0 -0
  136. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
  137. data/ext/apex_ext/apex_src/documentation/generate_app_docs.rb +0 -772
  138. data/ext/apex_ext/apex_src/documentation/generate_app_docs_ai.rb +0 -678
  139. data/ext/apex_ext/apex_src/documentation/generate_docset.rb +0 -873
  140. data/ext/apex_ext/apex_src/documentation/generate_single_html.rb +0 -733
  141. data/ext/apex_ext/apex_src/documentation/html/apex-app-docs.html +0 -8746
  142. data/ext/apex_ext/apex_src/documentation/html/apex-docs.html +0 -17073
  143. data/ext/apex_ext/apex_src/documentation/shared_scripts.js +0 -64
  144. data/ext/apex_ext/apex_src/documentation/shared_styles.css +0 -651
  145. data/ext/apex_ext/apex_src/documentation/transform_for_app.example.md +0 -260
  146. data/ext/apex_ext/apex_src/documentation/transform_for_app.md +0 -55
  147. data/ext/apex_ext/apex_src/escaping-repro.md +0 -103
  148. data/ext/apex_ext/apex_src/examples/bracketed_spans_demo.md +0 -119
  149. data/ext/apex_ext/apex_src/examples/emoji_span_plugin.yml +0 -11
  150. data/ext/apex_ext/apex_src/examples/example.html +0 -53
  151. data/ext/apex_ext/apex_src/examples/example.md +0 -85
  152. data/ext/apex_ext/apex_src/examples/fenced_divs_demo.md +0 -158
  153. data/ext/apex_ext/apex_src/examples/kbd.md +0 -8
  154. data/ext/apex_ext/apex_src/examples/kbd_plugin.rb +0 -250
  155. data/ext/apex_ext/apex_src/examples/kbd_plugin.yml +0 -9
  156. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/Info.plist +0 -8
  157. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/QuickLook/Preview.png +0 -0
  158. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/document.wflow +0 -547
  159. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown-to-RTF.workflow.zip +0 -0
  160. data/ext/apex_ext/apex_src/examples/quick-actions/README.md +0 -33
  161. data/ext/apex_ext/apex_src/ial.html +0 -24
  162. data/ext/apex_ext/apex_src/icon/apexicon-outline-black.png +0 -0
  163. data/ext/apex_ext/apex_src/icon/apexicon-outline-black@2x.png +0 -0
  164. data/ext/apex_ext/apex_src/icon/apexicon-outline-mark.png +0 -0
  165. data/ext/apex_ext/apex_src/icon/apexicon-outline-mark@2x.png +0 -0
  166. data/ext/apex_ext/apex_src/icon/apexicon-outline-white.png +0 -0
  167. data/ext/apex_ext/apex_src/icon/apexicon-outline-white@2x.png +0 -0
  168. data/ext/apex_ext/apex_src/icon/apexicon.png +0 -0
  169. data/ext/apex_ext/apex_src/icon/apexicon@2x.png +0 -0
  170. data/ext/apex_ext/apex_src/man/apex-config.5 +0 -455
  171. data/ext/apex_ext/apex_src/man/apex-config.5.md +0 -262
  172. data/ext/apex_ext/apex_src/man/apex-plugins.7 +0 -541
  173. data/ext/apex_ext/apex_src/man/apex-plugins.7.md +0 -365
  174. data/ext/apex_ext/apex_src/man/apex.1 +0 -583
  175. data/ext/apex_ext/apex_src/man/apex.1.html +0 -703
  176. data/ext/apex_ext/apex_src/man/apex.1.md +0 -803
  177. data/ext/apex_ext/apex_src/man/apex.1.new +0 -338
  178. data/ext/apex_ext/apex_src/objc/Apex.swift +0 -316
  179. data/ext/apex_ext/apex_src/objc/ApexPlugins.swift +0 -79
  180. data/ext/apex_ext/apex_src/objc/NSString+Apex.h +0 -207
  181. data/ext/apex_ext/apex_src/objc/NSString+Apex.m +0 -584
  182. data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.h +0 -76
  183. data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.m +0 -169
  184. data/ext/apex_ext/apex_src/output.html +0 -87
  185. data/ext/apex_ext/apex_src/pages/index.md +0 -459
  186. data/ext/apex_ext/apex_src/plans/quarto-mode.md +0 -442
  187. data/ext/apex_ext/apex_src/src/_README.md +0 -413
  188. data/ext/apex_ext/apex_src/src/extensions/github-emoji.txt +0 -869
  189. data/ext/apex_ext/apex_src/test-linux-build.sh +0 -20
  190. data/ext/apex_ext/apex_src/test.html +0 -103
  191. data/ext/apex_ext/apex_src/test_coverage.sh +0 -121
  192. data/ext/apex_ext/apex_src/test_ial_fenced.md +0 -6
  193. data/ext/apex_ext/apex_src/test_math_norm.py +0 -79
  194. data/ext/apex_ext/apex_src/test_pandoc_output.html +0 -48
  195. data/ext/apex_ext/apex_src/test_spm.sh +0 -107
  196. data/ext/apex_ext/apex_src/tests/ApexSPMTest/main.swift +0 -50
  197. data/ext/apex_ext/apex_src/tests/BENCHMARK_RESULTS.md +0 -229
  198. data/ext/apex_ext/apex_src/tests/CMakeLists.txt +0 -25
  199. data/ext/apex_ext/apex_src/tests/README.md +0 -152
  200. data/ext/apex_ext/apex_src/tests/benchmark.sh +0 -113
  201. data/ext/apex_ext/apex_src/tests/benchmark_comparison.sh +0 -166
  202. data/ext/apex_ext/apex_src/tests/compare_header_ids.sh +0 -31
  203. data/ext/apex_ext/apex_src/tests/fixtures/basic/headers.md +0 -25
  204. data/ext/apex_ext/apex_src/tests/fixtures/basic/list-interruption.md +0 -24
  205. data/ext/apex_ext/apex_src/tests/fixtures/basic/misc_markup.md +0 -33
  206. data/ext/apex_ext/apex_src/tests/fixtures/basic/test_basic.md +0 -26
  207. data/ext/apex_ext/apex_src/tests/fixtures/code/code-blocks.md +0 -260
  208. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/SUMMARY.md +0 -6
  209. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/chapter1.md +0 -7
  210. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/index.txt +0 -9
  211. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/intro.md +0 -5
  212. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/section1_1.md +0 -5
  213. data/ext/apex_ext/apex_src/tests/fixtures/comprehensive_test.md +0 -652
  214. data/ext/apex_ext/apex_src/tests/fixtures/debug_ref_image_ial.md +0 -3
  215. data/ext/apex_ext/apex_src/tests/fixtures/demos/ial.md +0 -11
  216. data/ext/apex_ext/apex_src/tests/fixtures/demos/ial_demo.md +0 -177
  217. data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji-autocorrect.md +0 -94
  218. data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji_test.md +0 -3
  219. data/ext/apex_ext/apex_src/tests/fixtures/extensions/kbd_test.md +0 -3
  220. data/ext/apex_ext/apex_src/tests/fixtures/filters/filter_output_with_rawblock.json +0 -1
  221. data/ext/apex_ext/apex_src/tests/fixtures/filters/unwrap.md +0 -7
  222. data/ext/apex_ext/apex_src/tests/fixtures/ial/bracketed_spans_test.md +0 -74
  223. data/ext/apex_ext/apex_src/tests/fixtures/images/auto-wildcard.md +0 -8
  224. data/ext/apex_ext/apex_src/tests/fixtures/images/bear_image_attributes.md +0 -10
  225. data/ext/apex_ext/apex_src/tests/fixtures/images/image_and_encoding_test.md +0 -27
  226. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.avif +0 -0
  227. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.jpg +0 -0
  228. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.webp +0 -0
  229. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.avif +0 -0
  230. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.jpg +0 -0
  231. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.webp +0 -0
  232. data/ext/apex_ext/apex_src/tests/fixtures/images/media_formats_test.md +0 -63
  233. data/ext/apex_ext/apex_src/tests/fixtures/images/multimarkdown_image_attributes_test.md +0 -60
  234. data/ext/apex_ext/apex_src/tests/fixtures/images/pandoc_ial_image_test.md +0 -27
  235. data/ext/apex_ext/apex_src/tests/fixtures/images/width_height_conversion_test.md +0 -94
  236. data/ext/apex_ext/apex_src/tests/fixtures/img-in-div.md +0 -16
  237. data/ext/apex_ext/apex_src/tests/fixtures/includes/code.py +0 -4
  238. data/ext/apex_ext/apex_src/tests/fixtures/includes/data-semi.csv +0 -3
  239. data/ext/apex_ext/apex_src/tests/fixtures/includes/data.csv +0 -5
  240. data/ext/apex_ext/apex_src/tests/fixtures/includes/data.tsv +0 -5
  241. data/ext/apex_ext/apex_src/tests/fixtures/includes/image.png +0 -2
  242. data/ext/apex_ext/apex_src/tests/fixtures/includes/metadata_options.yml +0 -11
  243. data/ext/apex_ext/apex_src/tests/fixtures/includes/nested.md +0 -8
  244. data/ext/apex_ext/apex_src/tests/fixtures/includes/raw.html +0 -4
  245. data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.md +0 -19
  246. data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.txt +0 -11
  247. data/ext/apex_ext/apex_src/tests/fixtures/includes/simple.md +0 -7
  248. data/ext/apex_ext/apex_src/tests/fixtures/includes/test_image.png +0 -0
  249. data/ext/apex_ext/apex_src/tests/fixtures/includes/with space.txt +0 -1
  250. data/ext/apex_ext/apex_src/tests/fixtures/large_doc.md +0 -1094
  251. data/ext/apex_ext/apex_src/tests/fixtures/metadata/mmd-metadata.md +0 -5
  252. data/ext/apex_ext/apex_src/tests/fixtures/metadata/pandoc-meta.md +0 -4
  253. data/ext/apex_ext/apex_src/tests/fixtures/metadata/yaml-frontmatter.md +0 -6
  254. data/ext/apex_ext/apex_src/tests/fixtures/metadata_options.yml +0 -11
  255. data/ext/apex_ext/apex_src/tests/fixtures/minimal_pb.md +0 -2
  256. data/ext/apex_ext/apex_src/tests/fixtures/obsidian-callouts.md +0 -46
  257. data/ext/apex_ext/apex_src/tests/fixtures/output/gfm_header_id_test.md +0 -96
  258. data/ext/apex_ext/apex_src/tests/fixtures/output/test_citations.md +0 -43
  259. data/ext/apex_ext/apex_src/tests/fixtures/output/test_def_list_links.md +0 -12
  260. data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_mmark.md +0 -53
  261. data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_textindex.md +0 -37
  262. data/ext/apex_ext/apex_src/tests/fixtures/pagebreak_html_repro.md +0 -5
  263. data/ext/apex_ext/apex_src/tests/fixtures/python-callouts.md +0 -47
  264. data/ext/apex_ext/apex_src/tests/fixtures/quarto/callouts.md +0 -3
  265. data/ext/apex_ext/apex_src/tests/fixtures/quarto/code-attrs.md +0 -3
  266. data/ext/apex_ext/apex_src/tests/fixtures/quarto/diagrams.md +0 -8
  267. data/ext/apex_ext/apex_src/tests/fixtures/quarto/lists.md +0 -19
  268. data/ext/apex_ext/apex_src/tests/fixtures/quarto/raw-content.md +0 -5
  269. data/ext/apex_ext/apex_src/tests/fixtures/quarto/shortcodes.md +0 -7
  270. data/ext/apex_ext/apex_src/tests/fixtures/quarto/smoke.md +0 -81
  271. data/ext/apex_ext/apex_src/tests/fixtures/quarto/spans.md +0 -5
  272. data/ext/apex_ext/apex_src/tests/fixtures/quarto-callouts.md +0 -47
  273. data/ext/apex_ext/apex_src/tests/fixtures/speed.md +0 -192
  274. data/ext/apex_ext/apex_src/tests/fixtures/tables/advanced_tables_test.md +0 -93
  275. data/ext/apex_ext/apex_src/tests/fixtures/tables/grid-tables.md +0 -37
  276. data/ext/apex_ext/apex_src/tests/fixtures/tables/inline_tables_test.md +0 -41
  277. data/ext/apex_ext/apex_src/tests/fixtures/tables/relaxed-table.md +0 -12
  278. data/ext/apex_ext/apex_src/tests/fixtures/tables/table_cr_line_endings.md +0 -15
  279. data/ext/apex_ext/apex_src/tests/fixtures/tables/table_no_trailing_newline.md +0 -15
  280. data/ext/apex_ext/apex_src/tests/generate_gfm_ids.sh +0 -105
  281. data/ext/apex_ext/apex_src/tests/generate_ial_demo.sh +0 -143
  282. data/ext/apex_ext/apex_src/tests/gfm_id_comparison_summary.md +0 -96
  283. data/ext/apex_ext/apex_src/tests/gh_api_test.md +0 -6
  284. data/ext/apex_ext/apex_src/tests/ial_demo.html +0 -186
  285. data/ext/apex_ext/apex_src/tests/include_code.py +0 -19
  286. data/ext/apex_ext/apex_src/tests/include_snippet.md +0 -15
  287. data/ext/apex_ext/apex_src/tests/metadata_cli_test.sh +0 -119
  288. data/ext/apex_ext/apex_src/tests/multi_file_cli_test.sh +0 -64
  289. data/ext/apex_ext/apex_src/tests/paginate_cli_test.sh +0 -80
  290. data/ext/apex_ext/apex_src/tests/sample_data.csv +0 -7
  291. data/ext/apex_ext/apex_src/tests/table_escaped_ltlt.md +0 -4
  292. data/ext/apex_ext/apex_src/tests/terminal_width_test.sh +0 -29
  293. data/ext/apex_ext/apex_src/tests/test-swift-package.sh +0 -14
  294. data/ext/apex_ext/apex_src/tests/test_basic.c +0 -74
  295. data/ext/apex_ext/apex_src/tests/test_bear_image_attrs.c +0 -301
  296. data/ext/apex_ext/apex_src/tests/test_cmark_callback.c +0 -189
  297. data/ext/apex_ext/apex_src/tests/test_concordance.tsv +0 -4
  298. data/ext/apex_ext/apex_src/tests/test_custom_plugins.c +0 -78
  299. data/ext/apex_ext/apex_src/tests/test_escaping_repro.c +0 -82
  300. data/ext/apex_ext/apex_src/tests/test_extensions.c +0 -3337
  301. data/ext/apex_ext/apex_src/tests/test_helpers.c +0 -183
  302. data/ext/apex_ext/apex_src/tests/test_helpers.h +0 -91
  303. data/ext/apex_ext/apex_src/tests/test_ial.c +0 -289
  304. data/ext/apex_ext/apex_src/tests/test_links.c +0 -418
  305. data/ext/apex_ext/apex_src/tests/test_marked_integration.c +0 -290
  306. data/ext/apex_ext/apex_src/tests/test_metadata.c +0 -1147
  307. data/ext/apex_ext/apex_src/tests/test_output.c +0 -2056
  308. data/ext/apex_ext/apex_src/tests/test_plugins.c +0 -219
  309. data/ext/apex_ext/apex_src/tests/test_refs.bib +0 -31
  310. data/ext/apex_ext/apex_src/tests/test_runner.c +0 -268
  311. data/ext/apex_ext/apex_src/tests/test_syntax_highlight.c +0 -198
  312. data/ext/apex_ext/apex_src/tests/test_tables.c +0 -1298
  313. data/ext/apex_ext/apex_src/tests/update_benchmarks.sh +0 -9
  314. data/ext/apex_ext/apex_src/tests/yaml_test.md +0 -13
  315. data/ext/apex_ext/apex_src/tests.rb +0 -39
  316. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CMakeLists.txt +0 -48
  317. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.c +0 -14
  318. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.cmake +0 -43
  319. data/ext/apex_ext/apex_src/vendor/cmark-gfm/FindAsan.cmake +0 -74
  320. data/ext/apex_ext/apex_src/vendor/cmark-gfm/Makefile.nmake +0 -38
  321. data/ext/apex_ext/apex_src/vendor/cmark-gfm/README.md +0 -206
  322. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/CMakeLists.txt +0 -30
  323. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.cpp +0 -15
  324. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.h +0 -16
  325. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.c +0 -111
  326. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.h +0 -35
  327. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/main.c +0 -1169
  328. data/ext/apex_ext/apex_src/vendor/cmark-gfm/appveyor.yml +0 -21
  329. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-flat.md +0 -16
  330. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-nested.md +0 -13
  331. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-code.md +0 -11
  332. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-fences.md +0 -14
  333. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-heading.md +0 -9
  334. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-hr.md +0 -10
  335. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-html.md +0 -32
  336. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-lheading.md +0 -8
  337. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-flat.md +0 -67
  338. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-nested.md +0 -36
  339. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-flat.md +0 -15
  340. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-nested.md +0 -17
  341. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-autolink.md +0 -14
  342. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-backticks.md +0 -3
  343. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-flat.md +0 -5
  344. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-nested.md +0 -5
  345. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-worst.md +0 -5
  346. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-entity.md +0 -11
  347. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-escape.md +0 -15
  348. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-html.md +0 -44
  349. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-flat.md +0 -23
  350. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-nested.md +0 -13
  351. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-newlines.md +0 -24
  352. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/lorem1.md +0 -13
  353. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/rawtabs.md +0 -18
  354. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/statistics.py +0 -595
  355. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/stats.py +0 -19
  356. data/ext/apex_ext/apex_src/vendor/cmark-gfm/benchmarks.md +0 -33
  357. data/ext/apex_ext/apex_src/vendor/cmark-gfm/changelog.txt +0 -1245
  358. data/ext/apex_ext/apex_src/vendor/cmark-gfm/data/CaseFolding.txt +0 -1495
  359. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/CMakeLists.txt +0 -119
  360. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/ext_scanners.re +0 -92
  361. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/CMakeLists.txt +0 -22
  362. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/README.md +0 -12
  363. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic.c +0 -91
  364. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic_brackets.c +0 -110
  365. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzzloop.sh +0 -28
  366. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/CMakeLists.txt +0 -10
  367. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/make_man_page.py +0 -133
  368. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man1/cmark-gfm.1 +0 -78
  369. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man3/cmark-gfm.3 +0 -1041
  370. data/ext/apex_ext/apex_src/vendor/cmark-gfm/nmake.bat +0 -1
  371. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/CMakeLists.txt +0 -230
  372. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark-gfm_version.h.in +0 -7
  373. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/config.h.in +0 -76
  374. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/libcmark-gfm.pc.in +0 -10
  375. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/scanners.re +0 -365
  376. data/ext/apex_ext/apex_src/vendor/cmark-gfm/suppressions +0 -10
  377. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/CMakeLists.txt +0 -114
  378. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/cmark.cpython-314.pyc +0 -0
  379. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/normalize.cpython-314.pyc +0 -0
  380. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/afl_test_cases/test.md +0 -49
  381. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark-fuzz.c +0 -58
  382. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark.py +0 -105
  383. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/entity_tests.py +0 -67
  384. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions-full-info-string.txt +0 -0
  385. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions-table-prefer-style-attributes.txt +0 -38
  386. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions.txt +0 -989
  387. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/fuzzing_dictionary +0 -67
  388. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/normalize.py +0 -194
  389. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/pathological_tests.py +0 -160
  390. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/regression.txt +0 -375
  391. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/roundtrip_tests.py +0 -50
  392. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/run-cmark-fuzz +0 -4
  393. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/smart_punct.txt +0 -177
  394. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec.txt +0 -10212
  395. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec_tests.py +0 -152
  396. data/ext/apex_ext/apex_src/vendor/cmark-gfm/toolchain-mingw32.cmake +0 -17
  397. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/Dockerfile +0 -41
  398. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/appveyor-build.bat +0 -13
  399. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/make_entities_inc.py +0 -32
  400. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/mkcasefold.pl +0 -22
  401. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md.xsl +0 -319
  402. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md_gfm.xsl +0 -80
  403. data/ext/apex_ext/apex_src/vendor/cmark-gfm/why-cmark-and-not-x.md +0 -104
  404. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.js +0 -6
  405. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.py +0 -37
  406. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rb +0 -15
  407. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rkt +0 -208
  408. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper_ext.py +0 -109
  409. data/ext/apex_ext/apex_src/vendor/libyaml/CMakeLists.txt +0 -160
  410. data/ext/apex_ext/apex_src/vendor/libyaml/Changes +0 -372
  411. data/ext/apex_ext/apex_src/vendor/libyaml/License +0 -20
  412. data/ext/apex_ext/apex_src/vendor/libyaml/Makefile.am +0 -51
  413. data/ext/apex_ext/apex_src/vendor/libyaml/ReadMe.md +0 -46
  414. data/ext/apex_ext/apex_src/vendor/libyaml/announcement.msg +0 -89
  415. data/ext/apex_ext/apex_src/vendor/libyaml/bootstrap +0 -3
  416. data/ext/apex_ext/apex_src/vendor/libyaml/cmake/config.h.in +0 -4
  417. data/ext/apex_ext/apex_src/vendor/libyaml/configure.ac +0 -73
  418. data/ext/apex_ext/apex_src/vendor/libyaml/doc/doxygen.cfg +0 -222
  419. data/ext/apex_ext/apex_src/vendor/libyaml/docker/README.mkd +0 -17
  420. data/ext/apex_ext/apex_src/vendor/libyaml/docker/alpine-3.7 +0 -26
  421. data/ext/apex_ext/apex_src/vendor/libyaml/docker/fedora-25 +0 -26
  422. data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-14.04 +0 -29
  423. data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-16.04 +0 -24
  424. data/ext/apex_ext/apex_src/vendor/libyaml/examples/anchors.yaml +0 -10
  425. data/ext/apex_ext/apex_src/vendor/libyaml/examples/array.yaml +0 -2
  426. data/ext/apex_ext/apex_src/vendor/libyaml/examples/global-tag.yaml +0 -14
  427. data/ext/apex_ext/apex_src/vendor/libyaml/examples/json.yaml +0 -1
  428. data/ext/apex_ext/apex_src/vendor/libyaml/examples/mapping.yaml +0 -2
  429. data/ext/apex_ext/apex_src/vendor/libyaml/examples/numbers.yaml +0 -1
  430. data/ext/apex_ext/apex_src/vendor/libyaml/examples/strings.yaml +0 -7
  431. data/ext/apex_ext/apex_src/vendor/libyaml/examples/tags.yaml +0 -7
  432. data/ext/apex_ext/apex_src/vendor/libyaml/examples/yaml-version.yaml +0 -3
  433. data/ext/apex_ext/apex_src/vendor/libyaml/include/Makefile.am +0 -17
  434. data/ext/apex_ext/apex_src/vendor/libyaml/include/yaml.h +0 -1999
  435. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/ReadMe.md +0 -77
  436. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/Dockerfile +0 -32
  437. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/output/ReadMe +0 -1
  438. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/scripts/libyaml-dist.sh +0 -23
  439. data/ext/apex_ext/apex_src/vendor/libyaml/regression-inputs/clusterfuzz-testcase-minimized-5607885063061504.yml +0 -1
  440. data/ext/apex_ext/apex_src/vendor/libyaml/src/Makefile.am +0 -4
  441. data/ext/apex_ext/apex_src/vendor/libyaml/src/api.c +0 -1393
  442. data/ext/apex_ext/apex_src/vendor/libyaml/src/dumper.c +0 -394
  443. data/ext/apex_ext/apex_src/vendor/libyaml/src/emitter.c +0 -2358
  444. data/ext/apex_ext/apex_src/vendor/libyaml/src/loader.c +0 -544
  445. data/ext/apex_ext/apex_src/vendor/libyaml/src/parser.c +0 -1416
  446. data/ext/apex_ext/apex_src/vendor/libyaml/src/reader.c +0 -469
  447. data/ext/apex_ext/apex_src/vendor/libyaml/src/scanner.c +0 -3598
  448. data/ext/apex_ext/apex_src/vendor/libyaml/src/writer.c +0 -141
  449. data/ext/apex_ext/apex_src/vendor/libyaml/src/yaml_private.h +0 -684
  450. data/ext/apex_ext/apex_src/vendor/libyaml/tests/CMakeLists.txt +0 -27
  451. data/ext/apex_ext/apex_src/vendor/libyaml/tests/Makefile.am +0 -9
  452. data/ext/apex_ext/apex_src/vendor/libyaml/tests/ReadMe.md +0 -63
  453. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor-alt.c +0 -800
  454. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor.c +0 -1127
  455. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter-alt.c +0 -217
  456. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter.c +0 -202
  457. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-all-tests.sh +0 -29
  458. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-dumper.c +0 -314
  459. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter-test-suite.c +0 -290
  460. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter.c +0 -327
  461. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-loader.c +0 -63
  462. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser-test-suite.c +0 -196
  463. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser.c +0 -88
  464. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-scanner.c +0 -63
  465. data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-reader.c +0 -354
  466. data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-version.c +0 -29
  467. data/ext/apex_ext/apex_src/vendor/libyaml/yaml-0.1.pc.in +0 -10
  468. data/ext/apex_ext/apex_src/vendor/libyaml/yamlConfig.cmake.in +0 -16
  469. data/ext/apex_ext/apex_src/xcode_build/CMakeScripts/ReRunCMake.make +0 -74
  470. data/ext/apex_ext/apex_src/xcode_build/CTestTestfile.cmake +0 -22
  471. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Apex +0 -0
  472. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Resources/Info.plist +0 -44
  473. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/_CodeSignature/CodeResources +0 -128
  474. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.pbxproj +0 -5118
  475. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
  476. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  477. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/WorkspaceSettings.xcsettings +0 -8
  478. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/xcuserdata/ttscoff.xcuserdatad/xcschemes/xcschememanagement.plist +0 -99
  479. data/ext/apex_ext/apex_src/xcode_build/cmake_install.cmake +0 -452
  480. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/CMakeScripts/ReRunCMake.make +0 -52
  481. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmake_install.cmake +0 -55
  482. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.pbxproj +0 -2455
  483. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
  484. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/extensions/cmake_install.cmake +0 -171
  485. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/man/cmake_install.cmake +0 -55
  486. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmake_install.cmake +0 -220
  487. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_export.h +0 -43
  488. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_version.h +0 -7
  489. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/config.h +0 -76
  490. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/libcmark-gfm.pc +0 -10
@@ -1,1127 +0,0 @@
1
-
2
- #include <yaml.h>
3
-
4
- #include <stdlib.h>
5
- #include <stdio.h>
6
-
7
- int
8
- main(int argc, char *argv[])
9
- {
10
- int help = 0;
11
- int canonical = 0;
12
- int unicode = 0;
13
- int k;
14
- int done = 0;
15
-
16
- yaml_parser_t parser;
17
- yaml_emitter_t emitter;
18
- yaml_event_t input_event;
19
- yaml_event_t output_event;
20
-
21
- /* Clear the objects. */
22
-
23
- memset(&parser, 0, sizeof(parser));
24
- memset(&emitter, 0, sizeof(emitter));
25
- memset(&input_event, 0, sizeof(input_event));
26
- memset(&output_event, 0, sizeof(output_event));
27
-
28
- /* Analyze command line options. */
29
-
30
- for (k = 1; k < argc; k ++)
31
- {
32
- if (strcmp(argv[k], "-h") == 0
33
- || strcmp(argv[k], "--help") == 0) {
34
- help = 1;
35
- }
36
-
37
- else if (strcmp(argv[k], "-c") == 0
38
- || strcmp(argv[k], "--canonical") == 0) {
39
- canonical = 1;
40
- }
41
-
42
- else if (strcmp(argv[k], "-u") == 0
43
- || strcmp(argv[k], "--unicode") == 0) {
44
- unicode = 1;
45
- }
46
-
47
- else {
48
- fprintf(stderr, "Unrecognized option: %s\n"
49
- "Try `%s --help` for more information.\n",
50
- argv[k], argv[0]);
51
- return 1;
52
- }
53
- }
54
-
55
- /* Display the help string. */
56
-
57
- if (help)
58
- {
59
- printf("%s <input\n"
60
- "or\n%s -h | --help\nDeconstruct a YAML stream\n\nOptions:\n"
61
- "-h, --help\t\tdisplay this help and exit\n"
62
- "-c, --canonical\t\toutput in the canonical YAML format\n"
63
- "-u, --unicode\t\toutput unescaped non-ASCII characters\n",
64
- argv[0], argv[0]);
65
- return 0;
66
- }
67
-
68
- /* Initialize the parser and emitter objects. */
69
-
70
- if (!yaml_parser_initialize(&parser)) {
71
- fprintf(stderr, "Could not initialize the parser object\n");
72
- return 1;
73
- }
74
-
75
- if (!yaml_emitter_initialize(&emitter)) {
76
- yaml_parser_delete(&parser);
77
- fprintf(stderr, "Could not inialize the emitter object\n");
78
- return 1;
79
- }
80
-
81
- /* Set the parser parameters. */
82
-
83
- yaml_parser_set_input_file(&parser, stdin);
84
-
85
- /* Set the emitter parameters. */
86
-
87
- yaml_emitter_set_output_file(&emitter, stdout);
88
-
89
- yaml_emitter_set_canonical(&emitter, canonical);
90
- yaml_emitter_set_unicode(&emitter, unicode);
91
-
92
- /* Create and emit the STREAM-START event. */
93
-
94
- if (!yaml_stream_start_event_initialize(&output_event, YAML_UTF8_ENCODING))
95
- goto event_error;
96
- if (!yaml_emitter_emit(&emitter, &output_event))
97
- goto emitter_error;
98
-
99
- /* Create and emit the DOCUMENT-START event. */
100
-
101
- if (!yaml_document_start_event_initialize(&output_event,
102
- NULL, NULL, NULL, 0))
103
- goto event_error;
104
- if (!yaml_emitter_emit(&emitter, &output_event))
105
- goto emitter_error;
106
-
107
- /* Create and emit the SEQUENCE-START event. */
108
-
109
- if (!yaml_sequence_start_event_initialize(&output_event,
110
- NULL, (yaml_char_t *)"tag:yaml.org,2002:seq", 1,
111
- YAML_BLOCK_SEQUENCE_STYLE))
112
- goto event_error;
113
- if (!yaml_emitter_emit(&emitter, &output_event))
114
- goto emitter_error;
115
-
116
- /* Loop through the input events. */
117
-
118
- while (!done)
119
- {
120
- /* Get the next event. */
121
-
122
- if (!yaml_parser_parse(&parser, &input_event))
123
- goto parser_error;
124
-
125
- /* Check if this is the stream end. */
126
-
127
- if (input_event.type == YAML_STREAM_END_EVENT) {
128
- done = 1;
129
- }
130
-
131
- /* Create and emit a MAPPING-START event. */
132
-
133
- if (!yaml_mapping_start_event_initialize(&output_event,
134
- NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
135
- YAML_BLOCK_MAPPING_STYLE))
136
- goto event_error;
137
- if (!yaml_emitter_emit(&emitter, &output_event))
138
- goto emitter_error;
139
-
140
- /* Analyze the event. */
141
-
142
- switch (input_event.type)
143
- {
144
- case YAML_STREAM_START_EVENT:
145
-
146
- /* Write 'type'. */
147
-
148
- if (!yaml_scalar_event_initialize(&output_event,
149
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
150
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
151
- goto event_error;
152
- if (!yaml_emitter_emit(&emitter, &output_event))
153
- goto emitter_error;
154
-
155
- /* Write 'STREAM-START'. */
156
-
157
- if (!yaml_scalar_event_initialize(&output_event,
158
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"STREAM-START", -1,
159
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
160
- goto event_error;
161
- if (!yaml_emitter_emit(&emitter, &output_event))
162
- goto emitter_error;
163
-
164
- /* Display encoding information. */
165
-
166
- if (input_event.data.stream_start.encoding)
167
- {
168
- yaml_encoding_t encoding
169
- = input_event.data.stream_start.encoding;
170
-
171
- /* Write 'encoding'. */
172
-
173
- if (!yaml_scalar_event_initialize(&output_event,
174
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"encoding", -1,
175
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
176
- goto event_error;
177
- if (!yaml_emitter_emit(&emitter, &output_event))
178
- goto emitter_error;
179
-
180
- /* Write the stream encoding. */
181
-
182
- if (!yaml_scalar_event_initialize(&output_event,
183
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
184
- (yaml_char_t *)(encoding == YAML_UTF8_ENCODING ? "utf-8" :
185
- encoding == YAML_UTF16LE_ENCODING ? "utf-16-le" :
186
- encoding == YAML_UTF16BE_ENCODING ? "utf-16-be" :
187
- "unknown"), -1,
188
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
189
- goto event_error;
190
- if (!yaml_emitter_emit(&emitter, &output_event))
191
- goto emitter_error;
192
- }
193
-
194
- break;
195
-
196
- case YAML_STREAM_END_EVENT:
197
-
198
- /* Write 'type'. */
199
-
200
- if (!yaml_scalar_event_initialize(&output_event,
201
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
202
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
203
- goto event_error;
204
- if (!yaml_emitter_emit(&emitter, &output_event))
205
- goto emitter_error;
206
-
207
- /* Write 'STREAM-END'. */
208
-
209
- if (!yaml_scalar_event_initialize(&output_event,
210
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"STREAM-END", -1,
211
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
212
- goto event_error;
213
- if (!yaml_emitter_emit(&emitter, &output_event))
214
- goto emitter_error;
215
-
216
- break;
217
-
218
- case YAML_DOCUMENT_START_EVENT:
219
-
220
- /* Write 'type'. */
221
-
222
- if (!yaml_scalar_event_initialize(&output_event,
223
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
224
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
225
- goto event_error;
226
- if (!yaml_emitter_emit(&emitter, &output_event))
227
- goto emitter_error;
228
-
229
- /* Write 'DOCUMENT-START'. */
230
-
231
- if (!yaml_scalar_event_initialize(&output_event,
232
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"DOCUMENT-START", -1,
233
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
234
- goto event_error;
235
- if (!yaml_emitter_emit(&emitter, &output_event))
236
- goto emitter_error;
237
-
238
- /* Display the document version numbers. */
239
-
240
- if (input_event.data.document_start.version_directive)
241
- {
242
- yaml_version_directive_t *version
243
- = input_event.data.document_start.version_directive;
244
- char number[64];
245
-
246
- /* Write 'version'. */
247
-
248
- if (!yaml_scalar_event_initialize(&output_event,
249
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"version", -1,
250
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
251
- goto event_error;
252
- if (!yaml_emitter_emit(&emitter, &output_event))
253
- goto emitter_error;
254
-
255
- /* Write '{'. */
256
-
257
- if (!yaml_mapping_start_event_initialize(&output_event,
258
- NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
259
- YAML_FLOW_MAPPING_STYLE))
260
- goto event_error;
261
- if (!yaml_emitter_emit(&emitter, &output_event))
262
- goto emitter_error;
263
-
264
- /* Write 'major'. */
265
-
266
- if (!yaml_scalar_event_initialize(&output_event,
267
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"major", -1,
268
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
269
- goto event_error;
270
- if (!yaml_emitter_emit(&emitter, &output_event))
271
- goto emitter_error;
272
-
273
- /* Write a number. */
274
-
275
- sprintf(number, "%d", version->major);
276
- if (!yaml_scalar_event_initialize(&output_event,
277
- NULL, (yaml_char_t *)"tag:yaml.org,2002:int", (yaml_char_t *)number, -1,
278
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
279
- goto event_error;
280
- if (!yaml_emitter_emit(&emitter, &output_event))
281
- goto emitter_error;
282
-
283
- /* Write 'minor'. */
284
-
285
- if (!yaml_scalar_event_initialize(&output_event,
286
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"minor", -1,
287
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
288
- goto event_error;
289
- if (!yaml_emitter_emit(&emitter, &output_event))
290
- goto emitter_error;
291
-
292
- /* Write a number. */
293
-
294
- sprintf(number, "%d", version->minor);
295
- if (!yaml_scalar_event_initialize(&output_event,
296
- NULL, (yaml_char_t *)"tag:yaml.org,2002:int", (yaml_char_t *)number, -1,
297
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
298
- goto event_error;
299
- if (!yaml_emitter_emit(&emitter, &output_event))
300
- goto emitter_error;
301
-
302
- /* Write '}'. */
303
-
304
- if (!yaml_mapping_end_event_initialize(&output_event))
305
- goto event_error;
306
- if (!yaml_emitter_emit(&emitter, &output_event))
307
- goto emitter_error;
308
- }
309
-
310
- /* Display the document tag directives. */
311
-
312
- if (input_event.data.document_start.tag_directives.start
313
- != input_event.data.document_start.tag_directives.end)
314
- {
315
- yaml_tag_directive_t *tag;
316
-
317
- /* Write 'tags'. */
318
-
319
- if (!yaml_scalar_event_initialize(&output_event,
320
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tags", -1,
321
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
322
- goto event_error;
323
- if (!yaml_emitter_emit(&emitter, &output_event))
324
- goto emitter_error;
325
-
326
- /* Start a block sequence. */
327
-
328
- if (!yaml_sequence_start_event_initialize(&output_event,
329
- NULL, (yaml_char_t *)"tag:yaml.org,2002:seq", 1,
330
- YAML_BLOCK_SEQUENCE_STYLE))
331
- goto event_error;
332
- if (!yaml_emitter_emit(&emitter, &output_event))
333
- goto emitter_error;
334
-
335
- for (tag = input_event.data.document_start.tag_directives.start;
336
- tag != input_event.data.document_start.tag_directives.end;
337
- tag ++)
338
- {
339
- /* Write '{'. */
340
-
341
- if (!yaml_mapping_start_event_initialize(&output_event,
342
- NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
343
- YAML_FLOW_MAPPING_STYLE))
344
- goto event_error;
345
- if (!yaml_emitter_emit(&emitter, &output_event))
346
- goto emitter_error;
347
-
348
- /* Write 'handle'. */
349
-
350
- if (!yaml_scalar_event_initialize(&output_event,
351
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"handle", -1,
352
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
353
- goto event_error;
354
- if (!yaml_emitter_emit(&emitter, &output_event))
355
- goto emitter_error;
356
-
357
- /* Write the tag directive handle. */
358
-
359
- if (!yaml_scalar_event_initialize(&output_event,
360
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
361
- tag->handle, -1,
362
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
363
- goto event_error;
364
- if (!yaml_emitter_emit(&emitter, &output_event))
365
- goto emitter_error;
366
-
367
- /* Write 'prefix'. */
368
-
369
- if (!yaml_scalar_event_initialize(&output_event,
370
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"prefix", -1,
371
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
372
- goto event_error;
373
- if (!yaml_emitter_emit(&emitter, &output_event))
374
- goto emitter_error;
375
-
376
- /* Write the tag directive prefix. */
377
-
378
- if (!yaml_scalar_event_initialize(&output_event,
379
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
380
- tag->prefix, -1,
381
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
382
- goto event_error;
383
- if (!yaml_emitter_emit(&emitter, &output_event))
384
- goto emitter_error;
385
-
386
- /* Write '}'. */
387
-
388
- if (!yaml_mapping_end_event_initialize(&output_event))
389
- goto event_error;
390
- if (!yaml_emitter_emit(&emitter, &output_event))
391
- goto emitter_error;
392
- }
393
-
394
- /* End a block sequence. */
395
-
396
- if (!yaml_sequence_end_event_initialize(&output_event))
397
- goto event_error;
398
- if (!yaml_emitter_emit(&emitter, &output_event))
399
- goto emitter_error;
400
- }
401
-
402
- /* Write 'implicit'. */
403
-
404
- if (!yaml_scalar_event_initialize(&output_event,
405
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
406
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
407
- goto event_error;
408
- if (!yaml_emitter_emit(&emitter, &output_event))
409
- goto emitter_error;
410
-
411
- /* Write if the document is implicit. */
412
-
413
- if (!yaml_scalar_event_initialize(&output_event,
414
- NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
415
- (yaml_char_t *)(input_event.data.document_start.implicit ?
416
- "true" : "false"), -1,
417
- 1, 0, YAML_PLAIN_SCALAR_STYLE))
418
- goto event_error;
419
- if (!yaml_emitter_emit(&emitter, &output_event))
420
- goto emitter_error;
421
-
422
- break;
423
-
424
- case YAML_DOCUMENT_END_EVENT:
425
-
426
- /* Write 'type'. */
427
-
428
- if (!yaml_scalar_event_initialize(&output_event,
429
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
430
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
431
- goto event_error;
432
- if (!yaml_emitter_emit(&emitter, &output_event))
433
- goto emitter_error;
434
-
435
- /* Write 'DOCUMENT-END'. */
436
-
437
- if (!yaml_scalar_event_initialize(&output_event,
438
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"DOCUMENT-END", -1,
439
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
440
- goto event_error;
441
- if (!yaml_emitter_emit(&emitter, &output_event))
442
- goto emitter_error;
443
-
444
- /* Write 'implicit'. */
445
-
446
- if (!yaml_scalar_event_initialize(&output_event,
447
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
448
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
449
- goto event_error;
450
- if (!yaml_emitter_emit(&emitter, &output_event))
451
- goto emitter_error;
452
-
453
- /* Write if the document is implicit. */
454
-
455
- if (!yaml_scalar_event_initialize(&output_event,
456
- NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
457
- (yaml_char_t *)(input_event.data.document_end.implicit ?
458
- "true" : "false"), -1,
459
- 1, 0, YAML_PLAIN_SCALAR_STYLE))
460
- goto event_error;
461
- if (!yaml_emitter_emit(&emitter, &output_event))
462
- goto emitter_error;
463
-
464
- break;
465
-
466
- case YAML_ALIAS_EVENT:
467
-
468
- /* Write 'type'. */
469
-
470
- if (!yaml_scalar_event_initialize(&output_event,
471
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
472
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
473
- goto event_error;
474
- if (!yaml_emitter_emit(&emitter, &output_event))
475
- goto emitter_error;
476
-
477
- /* Write 'ALIAS'. */
478
-
479
- if (!yaml_scalar_event_initialize(&output_event,
480
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"ALIAS", -1,
481
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
482
- goto event_error;
483
- if (!yaml_emitter_emit(&emitter, &output_event))
484
- goto emitter_error;
485
-
486
- /* Write 'anchor'. */
487
-
488
- if (!yaml_scalar_event_initialize(&output_event,
489
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
490
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
491
- goto event_error;
492
- if (!yaml_emitter_emit(&emitter, &output_event))
493
- goto emitter_error;
494
-
495
- /* Write the alias anchor. */
496
-
497
- if (!yaml_scalar_event_initialize(&output_event,
498
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
499
- input_event.data.alias.anchor, -1,
500
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
501
- goto event_error;
502
- if (!yaml_emitter_emit(&emitter, &output_event))
503
- goto emitter_error;
504
-
505
- break;
506
-
507
- case YAML_SCALAR_EVENT:
508
-
509
- /* Write 'type'. */
510
-
511
- if (!yaml_scalar_event_initialize(&output_event,
512
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
513
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
514
- goto event_error;
515
- if (!yaml_emitter_emit(&emitter, &output_event))
516
- goto emitter_error;
517
-
518
- /* Write 'SCALAR'. */
519
-
520
- if (!yaml_scalar_event_initialize(&output_event,
521
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"SCALAR", -1,
522
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
523
- goto event_error;
524
- if (!yaml_emitter_emit(&emitter, &output_event))
525
- goto emitter_error;
526
-
527
- /* Display the scalar anchor. */
528
-
529
- if (input_event.data.scalar.anchor)
530
- {
531
- /* Write 'anchor'. */
532
-
533
- if (!yaml_scalar_event_initialize(&output_event,
534
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
535
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
536
- goto event_error;
537
- if (!yaml_emitter_emit(&emitter, &output_event))
538
- goto emitter_error;
539
-
540
- /* Write the scalar anchor. */
541
-
542
- if (!yaml_scalar_event_initialize(&output_event,
543
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
544
- input_event.data.scalar.anchor, -1,
545
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
546
- goto event_error;
547
- if (!yaml_emitter_emit(&emitter, &output_event))
548
- goto emitter_error;
549
- }
550
-
551
- /* Display the scalar tag. */
552
-
553
- if (input_event.data.scalar.tag)
554
- {
555
- /* Write 'tag'. */
556
-
557
- if (!yaml_scalar_event_initialize(&output_event,
558
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tag", -1,
559
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
560
- goto event_error;
561
- if (!yaml_emitter_emit(&emitter, &output_event))
562
- goto emitter_error;
563
-
564
- /* Write the scalar tag. */
565
-
566
- if (!yaml_scalar_event_initialize(&output_event,
567
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
568
- input_event.data.scalar.tag, -1,
569
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
570
- goto event_error;
571
- if (!yaml_emitter_emit(&emitter, &output_event))
572
- goto emitter_error;
573
- }
574
-
575
- /* Display the scalar value. */
576
-
577
- /* Write 'value'. */
578
-
579
- if (!yaml_scalar_event_initialize(&output_event,
580
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"value", -1,
581
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
582
- goto event_error;
583
- if (!yaml_emitter_emit(&emitter, &output_event))
584
- goto emitter_error;
585
-
586
- /* Write the scalar value. */
587
-
588
- if (!yaml_scalar_event_initialize(&output_event,
589
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
590
- input_event.data.scalar.value,
591
- input_event.data.scalar.length,
592
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
593
- goto event_error;
594
- if (!yaml_emitter_emit(&emitter, &output_event))
595
- goto emitter_error;
596
-
597
- /* Display if the scalar tag is implicit. */
598
-
599
- /* Write 'implicit'. */
600
-
601
- if (!yaml_scalar_event_initialize(&output_event,
602
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
603
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
604
- goto event_error;
605
- if (!yaml_emitter_emit(&emitter, &output_event))
606
- goto emitter_error;
607
-
608
- /* Write '{'. */
609
-
610
- if (!yaml_mapping_start_event_initialize(&output_event,
611
- NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
612
- YAML_FLOW_MAPPING_STYLE))
613
- goto event_error;
614
- if (!yaml_emitter_emit(&emitter, &output_event))
615
- goto emitter_error;
616
-
617
- /* Write 'plain'. */
618
-
619
- if (!yaml_scalar_event_initialize(&output_event,
620
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"plain", -1,
621
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
622
- goto event_error;
623
- if (!yaml_emitter_emit(&emitter, &output_event))
624
- goto emitter_error;
625
-
626
- /* Write if the scalar is implicit in the plain style. */
627
-
628
- if (!yaml_scalar_event_initialize(&output_event,
629
- NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
630
- (yaml_char_t * )(input_event.data.scalar.plain_implicit ?
631
- "true" : "false"), -1,
632
- 1, 0, YAML_PLAIN_SCALAR_STYLE))
633
- goto event_error;
634
- if (!yaml_emitter_emit(&emitter, &output_event))
635
- goto emitter_error;
636
-
637
- /* Write 'quoted'. */
638
-
639
- if (!yaml_scalar_event_initialize(&output_event,
640
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"non-plain", -1,
641
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
642
- goto event_error;
643
- if (!yaml_emitter_emit(&emitter, &output_event))
644
- goto emitter_error;
645
-
646
- /* Write if the scalar is implicit in a non-plain style. */
647
-
648
- if (!yaml_scalar_event_initialize(&output_event,
649
- NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
650
- (yaml_char_t *)(input_event.data.scalar.quoted_implicit ?
651
- "true" : "false"), -1,
652
- 1, 0, YAML_PLAIN_SCALAR_STYLE))
653
- goto event_error;
654
- if (!yaml_emitter_emit(&emitter, &output_event))
655
- goto emitter_error;
656
-
657
- /* Write '}'. */
658
-
659
- if (!yaml_mapping_end_event_initialize(&output_event))
660
- goto event_error;
661
- if (!yaml_emitter_emit(&emitter, &output_event))
662
- goto emitter_error;
663
-
664
- /* Display the style information. */
665
-
666
- if (input_event.data.scalar.style)
667
- {
668
- yaml_scalar_style_t style = input_event.data.scalar.style;
669
-
670
- /* Write 'style'. */
671
-
672
- if (!yaml_scalar_event_initialize(&output_event,
673
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"style", -1,
674
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
675
- goto event_error;
676
- if (!yaml_emitter_emit(&emitter, &output_event))
677
- goto emitter_error;
678
-
679
- /* Write the scalar style. */
680
-
681
- if (!yaml_scalar_event_initialize(&output_event,
682
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
683
- (yaml_char_t *)(style == YAML_PLAIN_SCALAR_STYLE ? "plain" :
684
- style == YAML_SINGLE_QUOTED_SCALAR_STYLE ?
685
- "single-quoted" :
686
- style == YAML_DOUBLE_QUOTED_SCALAR_STYLE ?
687
- "double-quoted" :
688
- style == YAML_LITERAL_SCALAR_STYLE ? "literal" :
689
- style == YAML_FOLDED_SCALAR_STYLE ? "folded" :
690
- "unknown"), -1,
691
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
692
- goto event_error;
693
- if (!yaml_emitter_emit(&emitter, &output_event))
694
- goto emitter_error;
695
- }
696
-
697
- break;
698
-
699
- case YAML_SEQUENCE_START_EVENT:
700
-
701
- /* Write 'type'. */
702
-
703
- if (!yaml_scalar_event_initialize(&output_event,
704
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
705
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
706
- goto event_error;
707
- if (!yaml_emitter_emit(&emitter, &output_event))
708
- goto emitter_error;
709
-
710
- /* Write 'SEQUENCE-START'. */
711
-
712
- if (!yaml_scalar_event_initialize(&output_event,
713
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"SEQUENCE-START", -1,
714
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
715
- goto event_error;
716
- if (!yaml_emitter_emit(&emitter, &output_event))
717
- goto emitter_error;
718
-
719
- /* Display the sequence anchor. */
720
-
721
- if (input_event.data.sequence_start.anchor)
722
- {
723
- /* Write 'anchor'. */
724
-
725
- if (!yaml_scalar_event_initialize(&output_event,
726
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
727
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
728
- goto event_error;
729
- if (!yaml_emitter_emit(&emitter, &output_event))
730
- goto emitter_error;
731
-
732
- /* Write the sequence anchor. */
733
-
734
- if (!yaml_scalar_event_initialize(&output_event,
735
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
736
- input_event.data.sequence_start.anchor, -1,
737
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
738
- goto event_error;
739
- if (!yaml_emitter_emit(&emitter, &output_event))
740
- goto emitter_error;
741
- }
742
-
743
- /* Display the sequence tag. */
744
-
745
- if (input_event.data.sequence_start.tag)
746
- {
747
- /* Write 'tag'. */
748
-
749
- if (!yaml_scalar_event_initialize(&output_event,
750
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tag", -1,
751
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
752
- goto event_error;
753
- if (!yaml_emitter_emit(&emitter, &output_event))
754
- goto emitter_error;
755
-
756
- /* Write the sequence tag. */
757
-
758
- if (!yaml_scalar_event_initialize(&output_event,
759
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
760
- input_event.data.sequence_start.tag, -1,
761
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
762
- goto event_error;
763
- if (!yaml_emitter_emit(&emitter, &output_event))
764
- goto emitter_error;
765
- }
766
-
767
- /* Write 'implicit'. */
768
-
769
- if (!yaml_scalar_event_initialize(&output_event,
770
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
771
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
772
- goto event_error;
773
- if (!yaml_emitter_emit(&emitter, &output_event))
774
- goto emitter_error;
775
-
776
- /* Write if the sequence tag is implicit. */
777
-
778
- if (!yaml_scalar_event_initialize(&output_event,
779
- NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
780
- (yaml_char_t *)(input_event.data.sequence_start.implicit ?
781
- "true" : "false"), -1,
782
- 1, 0, YAML_PLAIN_SCALAR_STYLE))
783
- goto event_error;
784
- if (!yaml_emitter_emit(&emitter, &output_event))
785
- goto emitter_error;
786
-
787
- /* Display the style information. */
788
-
789
- if (input_event.data.sequence_start.style)
790
- {
791
- yaml_sequence_style_t style
792
- = input_event.data.sequence_start.style;
793
-
794
- /* Write 'style'. */
795
-
796
- if (!yaml_scalar_event_initialize(&output_event,
797
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"style", -1,
798
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
799
- goto event_error;
800
- if (!yaml_emitter_emit(&emitter, &output_event))
801
- goto emitter_error;
802
-
803
- /* Write the scalar style. */
804
-
805
- if (!yaml_scalar_event_initialize(&output_event,
806
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
807
- (yaml_char_t *)(style == YAML_BLOCK_SEQUENCE_STYLE ? "block" :
808
- style == YAML_FLOW_SEQUENCE_STYLE ? "flow" :
809
- "unknown"), -1,
810
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
811
- goto event_error;
812
- if (!yaml_emitter_emit(&emitter, &output_event))
813
- goto emitter_error;
814
- }
815
-
816
- break;
817
-
818
- case YAML_SEQUENCE_END_EVENT:
819
-
820
- /* Write 'type'. */
821
-
822
- if (!yaml_scalar_event_initialize(&output_event,
823
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
824
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
825
- goto event_error;
826
- if (!yaml_emitter_emit(&emitter, &output_event))
827
- goto emitter_error;
828
-
829
- /* Write 'SEQUENCE-END'. */
830
-
831
- if (!yaml_scalar_event_initialize(&output_event,
832
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"SEQUENCE-END", -1,
833
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
834
- goto event_error;
835
- if (!yaml_emitter_emit(&emitter, &output_event))
836
- goto emitter_error;
837
-
838
- break;
839
-
840
- case YAML_MAPPING_START_EVENT:
841
-
842
- /* Write 'type'. */
843
-
844
- if (!yaml_scalar_event_initialize(&output_event,
845
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
846
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
847
- goto event_error;
848
- if (!yaml_emitter_emit(&emitter, &output_event))
849
- goto emitter_error;
850
-
851
- /* Write 'MAPPING-START'. */
852
-
853
- if (!yaml_scalar_event_initialize(&output_event,
854
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"MAPPING-START", -1,
855
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
856
- goto event_error;
857
- if (!yaml_emitter_emit(&emitter, &output_event))
858
- goto emitter_error;
859
-
860
- /* Display the mapping anchor. */
861
-
862
- if (input_event.data.mapping_start.anchor)
863
- {
864
- /* Write 'anchor'. */
865
-
866
- if (!yaml_scalar_event_initialize(&output_event,
867
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
868
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
869
- goto event_error;
870
- if (!yaml_emitter_emit(&emitter, &output_event))
871
- goto emitter_error;
872
-
873
- /* Write the mapping anchor. */
874
-
875
- if (!yaml_scalar_event_initialize(&output_event,
876
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
877
- input_event.data.mapping_start.anchor, -1,
878
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
879
- goto event_error;
880
- if (!yaml_emitter_emit(&emitter, &output_event))
881
- goto emitter_error;
882
- }
883
-
884
- /* Display the mapping tag. */
885
-
886
- if (input_event.data.mapping_start.tag)
887
- {
888
- /* Write 'tag'. */
889
-
890
- if (!yaml_scalar_event_initialize(&output_event,
891
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tag", -1,
892
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
893
- goto event_error;
894
- if (!yaml_emitter_emit(&emitter, &output_event))
895
- goto emitter_error;
896
-
897
- /* Write the mapping tag. */
898
-
899
- if (!yaml_scalar_event_initialize(&output_event,
900
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
901
- input_event.data.mapping_start.tag, -1,
902
- 0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
903
- goto event_error;
904
- if (!yaml_emitter_emit(&emitter, &output_event))
905
- goto emitter_error;
906
- }
907
-
908
- /* Write 'implicit'. */
909
-
910
- if (!yaml_scalar_event_initialize(&output_event,
911
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
912
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
913
- goto event_error;
914
- if (!yaml_emitter_emit(&emitter, &output_event))
915
- goto emitter_error;
916
-
917
- /* Write if the mapping tag is implicit. */
918
-
919
- if (!yaml_scalar_event_initialize(&output_event,
920
- NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
921
- (yaml_char_t *)(input_event.data.mapping_start.implicit ?
922
- "true" : "false"), -1,
923
- 1, 0, YAML_PLAIN_SCALAR_STYLE))
924
- goto event_error;
925
- if (!yaml_emitter_emit(&emitter, &output_event))
926
- goto emitter_error;
927
-
928
- /* Display the style information. */
929
-
930
- if (input_event.data.mapping_start.style)
931
- {
932
- yaml_mapping_style_t style
933
- = input_event.data.mapping_start.style;
934
-
935
- /* Write 'style'. */
936
-
937
- if (!yaml_scalar_event_initialize(&output_event,
938
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"style", -1,
939
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
940
- goto event_error;
941
- if (!yaml_emitter_emit(&emitter, &output_event))
942
- goto emitter_error;
943
-
944
- /* Write the scalar style. */
945
-
946
- if (!yaml_scalar_event_initialize(&output_event,
947
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
948
- (yaml_char_t *)(style == YAML_BLOCK_MAPPING_STYLE ? "block" :
949
- style == YAML_FLOW_MAPPING_STYLE ? "flow" :
950
- "unknown"), -1,
951
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
952
- goto event_error;
953
- if (!yaml_emitter_emit(&emitter, &output_event))
954
- goto emitter_error;
955
- }
956
-
957
- break;
958
-
959
- case YAML_MAPPING_END_EVENT:
960
-
961
- /* Write 'type'. */
962
-
963
- if (!yaml_scalar_event_initialize(&output_event,
964
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
965
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
966
- goto event_error;
967
- if (!yaml_emitter_emit(&emitter, &output_event))
968
- goto emitter_error;
969
-
970
- /* Write 'MAPPING-END'. */
971
-
972
- if (!yaml_scalar_event_initialize(&output_event,
973
- NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"MAPPING-END", -1,
974
- 1, 1, YAML_PLAIN_SCALAR_STYLE))
975
- goto event_error;
976
- if (!yaml_emitter_emit(&emitter, &output_event))
977
- goto emitter_error;
978
-
979
- break;
980
-
981
- default:
982
- /* It couldn't really happen. */
983
- break;
984
- }
985
-
986
- /* Delete the event object. */
987
-
988
- yaml_event_delete(&input_event);
989
-
990
- /* Create and emit a MAPPING-END event. */
991
-
992
- if (!yaml_mapping_end_event_initialize(&output_event))
993
- goto event_error;
994
- if (!yaml_emitter_emit(&emitter, &output_event))
995
- goto emitter_error;
996
- }
997
-
998
- /* Create and emit the SEQUENCE-END event. */
999
-
1000
- if (!yaml_sequence_end_event_initialize(&output_event))
1001
- goto event_error;
1002
- if (!yaml_emitter_emit(&emitter, &output_event))
1003
- goto emitter_error;
1004
-
1005
- /* Create and emit the DOCUMENT-END event. */
1006
-
1007
- if (!yaml_document_end_event_initialize(&output_event, 0))
1008
- goto event_error;
1009
- if (!yaml_emitter_emit(&emitter, &output_event))
1010
- goto emitter_error;
1011
-
1012
- /* Create and emit the STREAM-END event. */
1013
-
1014
- if (!yaml_stream_end_event_initialize(&output_event))
1015
- goto event_error;
1016
- if (!yaml_emitter_emit(&emitter, &output_event))
1017
- goto emitter_error;
1018
-
1019
- yaml_parser_delete(&parser);
1020
- yaml_emitter_delete(&emitter);
1021
-
1022
- return 0;
1023
-
1024
- parser_error:
1025
-
1026
- /* Display a parser error message. */
1027
-
1028
- switch (parser.error)
1029
- {
1030
- case YAML_MEMORY_ERROR:
1031
- fprintf(stderr, "Memory error: Not enough memory for parsing\n");
1032
- break;
1033
-
1034
- case YAML_READER_ERROR:
1035
- if (parser.problem_value != -1) {
1036
- fprintf(stderr, "Reader error: %s: #%X at %ld\n", parser.problem,
1037
- parser.problem_value, (long)parser.problem_offset);
1038
- }
1039
- else {
1040
- fprintf(stderr, "Reader error: %s at %ld\n", parser.problem,
1041
- (long)parser.problem_offset);
1042
- }
1043
- break;
1044
-
1045
- case YAML_SCANNER_ERROR:
1046
- if (parser.context) {
1047
- fprintf(stderr, "Scanner error: %s at line %d, column %d\n"
1048
- "%s at line %d, column %d\n", parser.context,
1049
- (int)parser.context_mark.line+1, (int)parser.context_mark.column+1,
1050
- parser.problem, (int)parser.problem_mark.line+1,
1051
- (int)parser.problem_mark.column+1);
1052
- }
1053
- else {
1054
- fprintf(stderr, "Scanner error: %s at line %d, column %d\n",
1055
- parser.problem, (int)parser.problem_mark.line+1,
1056
- (int)parser.problem_mark.column+1);
1057
- }
1058
- break;
1059
-
1060
- case YAML_PARSER_ERROR:
1061
- if (parser.context) {
1062
- fprintf(stderr, "Parser error: %s at line %d, column %d\n"
1063
- "%s at line %d, column %d\n", parser.context,
1064
- (int)parser.context_mark.line+1, (int)parser.context_mark.column+1,
1065
- parser.problem, (int)parser.problem_mark.line+1,
1066
- (int)parser.problem_mark.column+1);
1067
- }
1068
- else {
1069
- fprintf(stderr, "Parser error: %s at line %d, column %d\n",
1070
- parser.problem, (int)parser.problem_mark.line+1,
1071
- (int)parser.problem_mark.column+1);
1072
- }
1073
- break;
1074
-
1075
- default:
1076
- /* Couldn't happen. */
1077
- fprintf(stderr, "Internal error\n");
1078
- break;
1079
- }
1080
-
1081
- yaml_event_delete(&input_event);
1082
- yaml_parser_delete(&parser);
1083
- yaml_emitter_delete(&emitter);
1084
-
1085
- return 1;
1086
-
1087
- emitter_error:
1088
-
1089
- /* Display an emitter error message. */
1090
-
1091
- switch (emitter.error)
1092
- {
1093
- case YAML_MEMORY_ERROR:
1094
- fprintf(stderr, "Memory error: Not enough memory for emitting\n");
1095
- break;
1096
-
1097
- case YAML_WRITER_ERROR:
1098
- fprintf(stderr, "Writer error: %s\n", emitter.problem);
1099
- break;
1100
-
1101
- case YAML_EMITTER_ERROR:
1102
- fprintf(stderr, "Emitter error: %s\n", emitter.problem);
1103
- break;
1104
-
1105
- default:
1106
- /* Couldn't happen. */
1107
- fprintf(stderr, "Internal error\n");
1108
- break;
1109
- }
1110
-
1111
- yaml_event_delete(&input_event);
1112
- yaml_parser_delete(&parser);
1113
- yaml_emitter_delete(&emitter);
1114
-
1115
- return 1;
1116
-
1117
- event_error:
1118
-
1119
- fprintf(stderr, "Memory error: Not enough memory for creating an event\n");
1120
-
1121
- yaml_event_delete(&input_event);
1122
- yaml_parser_delete(&parser);
1123
- yaml_emitter_delete(&emitter);
1124
-
1125
- return 1;
1126
- }
1127
-