commonmarker 0.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of commonmarker might be problematic. Click here for more details.

Files changed (291) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +119 -0
  5. data/Rakefile +39 -0
  6. data/bin/commonmarker +41 -0
  7. data/commonmarker.gemspec +30 -0
  8. data/ext/commonmarker/cmark/CMakeLists.txt +25 -0
  9. data/ext/commonmarker/cmark/COPYING +192 -0
  10. data/ext/commonmarker/cmark/FindAsan.cmake +74 -0
  11. data/ext/commonmarker/cmark/Makefile +170 -0
  12. data/ext/commonmarker/cmark/Makefile.nmake +36 -0
  13. data/ext/commonmarker/cmark/README.md +169 -0
  14. data/ext/commonmarker/cmark/api_test/CMakeLists.txt +25 -0
  15. data/ext/commonmarker/cmark/api_test/cplusplus.cpp +15 -0
  16. data/ext/commonmarker/cmark/api_test/cplusplus.h +17 -0
  17. data/ext/commonmarker/cmark/api_test/harness.c +102 -0
  18. data/ext/commonmarker/cmark/api_test/harness.h +42 -0
  19. data/ext/commonmarker/cmark/api_test/main.c +700 -0
  20. data/ext/commonmarker/cmark/appveyor.yml +15 -0
  21. data/ext/commonmarker/cmark/bench/statistics.py +595 -0
  22. data/ext/commonmarker/cmark/bench/stats.py +19 -0
  23. data/ext/commonmarker/cmark/benchmarks.md +33 -0
  24. data/ext/commonmarker/cmark/build/CMakeCache.txt +362 -0
  25. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCCompiler.cmake +63 -0
  26. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake +64 -0
  27. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_C.bin +0 -0
  28. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
  29. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeSystem.cmake +15 -0
  30. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/CMakeCCompilerId.c +499 -0
  31. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/a.out +0 -0
  32. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +489 -0
  33. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/a.out +0 -0
  34. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  35. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +30 -0
  36. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +598 -0
  37. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +77 -0
  38. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +268 -0
  39. data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +4 -0
  40. data/ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache +1 -0
  41. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.bin +0 -0
  42. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.c +34 -0
  43. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.cxx +405 -0
  44. data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +1 -0
  45. data/ext/commonmarker/cmark/build/CTestTestfile.cmake +10 -0
  46. data/ext/commonmarker/cmark/build/Makefile +237 -0
  47. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  48. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/C.includecache +92 -0
  49. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/CXX.includecache +36 -0
  50. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +29 -0
  51. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +155 -0
  52. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +12 -0
  53. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o +0 -0
  54. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.internal +25 -0
  55. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make +25 -0
  56. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make +13 -0
  57. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/harness.c.o +0 -0
  58. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -0
  59. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/main.c.o +0 -0
  60. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make +4 -0
  61. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +1 -0
  62. data/ext/commonmarker/cmark/build/api_test/Makefile +277 -0
  63. data/ext/commonmarker/cmark/build/api_test/api_test +0 -0
  64. data/ext/commonmarker/cmark/build/api_test/cmake_install.cmake +29 -0
  65. data/ext/commonmarker/cmark/build/cmake_install.cmake +48 -0
  66. data/ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  67. data/ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks +1 -0
  68. data/ext/commonmarker/cmark/build/man/Makefile +181 -0
  69. data/ext/commonmarker/cmark/build/man/cmake_install.cmake +37 -0
  70. data/ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  71. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/C.includecache +422 -0
  72. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +39 -0
  73. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/blocks.c.o +0 -0
  74. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/buffer.c.o +0 -0
  75. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +544 -0
  76. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +27 -0
  77. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark.c.o +0 -0
  78. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark_ctype.c.o +0 -0
  79. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/commonmark.c.o +0 -0
  80. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.internal +177 -0
  81. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make +177 -0
  82. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +8 -0
  83. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_href_e.c.o +0 -0
  84. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_e.c.o +0 -0
  85. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_u.c.o +0 -0
  86. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/html.c.o +0 -0
  87. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/inlines.c.o +0 -0
  88. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/iterator.c.o +0 -0
  89. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +1 -0
  90. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/main.c.o +0 -0
  91. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/man.c.o +0 -0
  92. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/node.c.o +0 -0
  93. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +19 -0
  94. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/references.c.o +0 -0
  95. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/scanners.c.o +0 -0
  96. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/utf8.c.o +0 -0
  97. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/xml.c.o +0 -0
  98. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/C.includecache +394 -0
  99. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +44 -0
  100. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/blocks.c.o +0 -0
  101. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/buffer.c.o +0 -0
  102. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +522 -0
  103. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +27 -0
  104. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark.c.o +0 -0
  105. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark_ctype.c.o +0 -0
  106. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/commonmark.c.o +0 -0
  107. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.internal +169 -0
  108. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make +169 -0
  109. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +8 -0
  110. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_href_e.c.o +0 -0
  111. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_e.c.o +0 -0
  112. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_u.c.o +0 -0
  113. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/html.c.o +0 -0
  114. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/inlines.c.o +0 -0
  115. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/iterator.c.o +0 -0
  116. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -0
  117. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/man.c.o +0 -0
  118. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/node.c.o +0 -0
  119. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +18 -0
  120. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/references.c.o +0 -0
  121. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/scanners.c.o +0 -0
  122. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/utf8.c.o +0 -0
  123. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/xml.c.o +0 -0
  124. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +394 -0
  125. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +38 -0
  126. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
  127. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
  128. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +519 -0
  129. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +26 -0
  130. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake +3 -0
  131. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
  132. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
  133. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
  134. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +169 -0
  135. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +169 -0
  136. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +8 -0
  137. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o +0 -0
  138. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o +0 -0
  139. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
  140. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
  141. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
  142. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
  143. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +2 -0
  144. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
  145. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
  146. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +18 -0
  147. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
  148. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
  149. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
  150. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
  151. data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +1 -0
  152. data/ext/commonmarker/cmark/build/src/Makefile +814 -0
  153. data/ext/commonmarker/cmark/build/src/cmake_install.cmake +69 -0
  154. data/ext/commonmarker/cmark/build/src/cmark +0 -0
  155. data/ext/commonmarker/cmark/build/src/cmark_export.h +41 -0
  156. data/ext/commonmarker/cmark/build/src/cmark_version.h +7 -0
  157. data/ext/commonmarker/cmark/build/src/config.h +23 -0
  158. data/ext/commonmarker/cmark/build/src/libcmark.0.19.0.dylib +0 -0
  159. data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
  160. data/ext/commonmarker/cmark/build/src/libcmark.dylib +0 -0
  161. data/ext/commonmarker/cmark/build/src/libcmark.pc +10 -0
  162. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  163. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks +1 -0
  164. data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +12 -0
  165. data/ext/commonmarker/cmark/build/testdir/Makefile +181 -0
  166. data/ext/commonmarker/cmark/build/testdir/cmake_install.cmake +29 -0
  167. data/ext/commonmarker/cmark/changelog.txt +153 -0
  168. data/ext/commonmarker/cmark/data/CaseFolding-3.2.0.txt +912 -0
  169. data/ext/commonmarker/cmark/man/CMakeLists.txt +8 -0
  170. data/ext/commonmarker/cmark/man/make_man_page.py +131 -0
  171. data/ext/commonmarker/cmark/man/man1/cmark.1 +54 -0
  172. data/ext/commonmarker/cmark/man/man3/cmark.3 +583 -0
  173. data/ext/commonmarker/cmark/nmake.bat +1 -0
  174. data/ext/commonmarker/cmark/src/CMakeLists.txt +166 -0
  175. data/ext/commonmarker/cmark/src/bench.h +27 -0
  176. data/ext/commonmarker/cmark/src/blocks.c +887 -0
  177. data/ext/commonmarker/cmark/src/buffer.c +381 -0
  178. data/ext/commonmarker/cmark/src/buffer.h +113 -0
  179. data/ext/commonmarker/cmark/src/case_fold_switch.inc +2637 -0
  180. data/ext/commonmarker/cmark/src/chunk.h +110 -0
  181. data/ext/commonmarker/cmark/src/cmark.c +24 -0
  182. data/ext/commonmarker/cmark/src/cmark.h +565 -0
  183. data/ext/commonmarker/cmark/src/cmark_ctype.c +53 -0
  184. data/ext/commonmarker/cmark/src/cmark_ctype.h +24 -0
  185. data/ext/commonmarker/cmark/src/cmark_version.h.in +7 -0
  186. data/ext/commonmarker/cmark/src/commonmark.c +607 -0
  187. data/ext/commonmarker/cmark/src/config.h.in +23 -0
  188. data/ext/commonmarker/cmark/src/debug.h +36 -0
  189. data/ext/commonmarker/cmark/src/houdini.h +52 -0
  190. data/ext/commonmarker/cmark/src/houdini_href_e.c +107 -0
  191. data/ext/commonmarker/cmark/src/houdini_html_e.c +81 -0
  192. data/ext/commonmarker/cmark/src/houdini_html_u.c +116 -0
  193. data/ext/commonmarker/cmark/src/html.c +322 -0
  194. data/ext/commonmarker/cmark/src/html_unescape.gperf +2130 -0
  195. data/ext/commonmarker/cmark/src/html_unescape.h +13375 -0
  196. data/ext/commonmarker/cmark/src/inlines.c +1147 -0
  197. data/ext/commonmarker/cmark/src/inlines.h +19 -0
  198. data/ext/commonmarker/cmark/src/iterator.c +148 -0
  199. data/ext/commonmarker/cmark/src/iterator.h +25 -0
  200. data/ext/commonmarker/cmark/src/libcmark.pc.in +10 -0
  201. data/ext/commonmarker/cmark/src/main.c +191 -0
  202. data/ext/commonmarker/cmark/src/man.c +287 -0
  203. data/ext/commonmarker/cmark/src/node.c +873 -0
  204. data/ext/commonmarker/cmark/src/node.h +82 -0
  205. data/ext/commonmarker/cmark/src/parser.h +29 -0
  206. data/ext/commonmarker/cmark/src/references.c +154 -0
  207. data/ext/commonmarker/cmark/src/references.h +37 -0
  208. data/ext/commonmarker/cmark/src/scanners.c +15291 -0
  209. data/ext/commonmarker/cmark/src/scanners.h +41 -0
  210. data/ext/commonmarker/cmark/src/scanners.re +247 -0
  211. data/ext/commonmarker/cmark/src/utf8.c +452 -0
  212. data/ext/commonmarker/cmark/src/utf8.h +22 -0
  213. data/ext/commonmarker/cmark/src/xml.c +170 -0
  214. data/ext/commonmarker/cmark/test/CMakeLists.txt +53 -0
  215. data/ext/commonmarker/cmark/test/afl_dictionary/asterisk +1 -0
  216. data/ext/commonmarker/cmark/test/afl_dictionary/attr_generic +1 -0
  217. data/ext/commonmarker/cmark/test/afl_dictionary/attr_href +1 -0
  218. data/ext/commonmarker/cmark/test/afl_dictionary/attr_xml_lang +1 -0
  219. data/ext/commonmarker/cmark/test/afl_dictionary/attr_xmlns +1 -0
  220. data/ext/commonmarker/cmark/test/afl_dictionary/backslash +1 -0
  221. data/ext/commonmarker/cmark/test/afl_dictionary/backtick +1 -0
  222. data/ext/commonmarker/cmark/test/afl_dictionary/colon +1 -0
  223. data/ext/commonmarker/cmark/test/afl_dictionary/dashes +1 -0
  224. data/ext/commonmarker/cmark/test/afl_dictionary/double_quote +1 -0
  225. data/ext/commonmarker/cmark/test/afl_dictionary/entity_builtin +1 -0
  226. data/ext/commonmarker/cmark/test/afl_dictionary/entity_decimal +1 -0
  227. data/ext/commonmarker/cmark/test/afl_dictionary/entity_external +1 -0
  228. data/ext/commonmarker/cmark/test/afl_dictionary/entity_hex +1 -0
  229. data/ext/commonmarker/cmark/test/afl_dictionary/equals +1 -0
  230. data/ext/commonmarker/cmark/test/afl_dictionary/exclamation +1 -0
  231. data/ext/commonmarker/cmark/test/afl_dictionary/greater_than +1 -0
  232. data/ext/commonmarker/cmark/test/afl_dictionary/hash +1 -0
  233. data/ext/commonmarker/cmark/test/afl_dictionary/hyphen +0 -0
  234. data/ext/commonmarker/cmark/test/afl_dictionary/indent +1 -0
  235. data/ext/commonmarker/cmark/test/afl_dictionary/left_bracket +1 -0
  236. data/ext/commonmarker/cmark/test/afl_dictionary/left_paren +1 -0
  237. data/ext/commonmarker/cmark/test/afl_dictionary/less_than +1 -0
  238. data/ext/commonmarker/cmark/test/afl_dictionary/plus +1 -0
  239. data/ext/commonmarker/cmark/test/afl_dictionary/right_bracket +1 -0
  240. data/ext/commonmarker/cmark/test/afl_dictionary/right_paren +1 -0
  241. data/ext/commonmarker/cmark/test/afl_dictionary/single_quote +1 -0
  242. data/ext/commonmarker/cmark/test/afl_dictionary/string_any +1 -0
  243. data/ext/commonmarker/cmark/test/afl_dictionary/string_brackets +1 -0
  244. data/ext/commonmarker/cmark/test/afl_dictionary/string_cdata +1 -0
  245. data/ext/commonmarker/cmark/test/afl_dictionary/string_dashes +1 -0
  246. data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_dblquotes +1 -0
  247. data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_quotes +1 -0
  248. data/ext/commonmarker/cmark/test/afl_dictionary/string_idrefs +1 -0
  249. data/ext/commonmarker/cmark/test/afl_dictionary/string_parentheses +1 -0
  250. data/ext/commonmarker/cmark/test/afl_dictionary/string_pcdata +1 -0
  251. data/ext/commonmarker/cmark/test/afl_dictionary/tag_cdata +1 -0
  252. data/ext/commonmarker/cmark/test/afl_dictionary/tag_close +1 -0
  253. data/ext/commonmarker/cmark/test/afl_dictionary/tag_doctype +1 -0
  254. data/ext/commonmarker/cmark/test/afl_dictionary/tag_element +1 -0
  255. data/ext/commonmarker/cmark/test/afl_dictionary/tag_entity +1 -0
  256. data/ext/commonmarker/cmark/test/afl_dictionary/tag_notation +1 -0
  257. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open +1 -0
  258. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_close +1 -0
  259. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_exclamation +1 -0
  260. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_q +1 -0
  261. data/ext/commonmarker/cmark/test/afl_dictionary/tag_sq2_close +1 -0
  262. data/ext/commonmarker/cmark/test/afl_dictionary/tag_xml_q +1 -0
  263. data/ext/commonmarker/cmark/test/afl_dictionary/underscore +1 -0
  264. data/ext/commonmarker/cmark/test/afl_test_cases/test.md +36 -0
  265. data/ext/commonmarker/cmark/test/cmark.py +40 -0
  266. data/ext/commonmarker/cmark/test/normalize.py +179 -0
  267. data/ext/commonmarker/cmark/test/pathological_tests.py +63 -0
  268. data/ext/commonmarker/cmark/test/roundtrip.sh +2 -0
  269. data/ext/commonmarker/cmark/test/smart_punct.txt +96 -0
  270. data/ext/commonmarker/cmark/test/spec.txt +7505 -0
  271. data/ext/commonmarker/cmark/test/spec_tests.py +139 -0
  272. data/ext/commonmarker/cmark/toolchain-mingw32.cmake +17 -0
  273. data/ext/commonmarker/cmark/tools/mkcasefold.pl +22 -0
  274. data/ext/commonmarker/cmark/wrappers/wrapper.lua +239 -0
  275. data/ext/commonmarker/cmark/wrappers/wrapper.py +37 -0
  276. data/ext/commonmarker/cmark/wrappers/wrapper.rb +15 -0
  277. data/ext/commonmarker/cmark/wrappers/wrapper.rkt +190 -0
  278. data/ext/commonmarker/commonmarker.c +165 -0
  279. data/ext/commonmarker/commonmarker.h +11 -0
  280. data/ext/commonmarker/extconf.rb +18 -0
  281. data/lib/commonmarker/config.rb +20 -0
  282. data/lib/commonmarker/version.rb +3 -0
  283. data/lib/commonmarker.rb +588 -0
  284. data/test/benchmark.rb +30 -0
  285. data/test/spec_tests.json +4074 -0
  286. data/test/test_basics.rb +44 -0
  287. data/test/test_helper.rb +5 -0
  288. data/test/test_maliciousness.rb +9 -0
  289. data/test/test_pathological_inputs.rb +52 -0
  290. data/test/test_spec.rb +20 -0
  291. metadata +399 -0
@@ -0,0 +1,489 @@
1
+ /* This source file must have a .cpp extension so that all C++ compilers
2
+ recognize the extension without flags. Borland does not know .cxx for
3
+ example. */
4
+ #ifndef __cplusplus
5
+ # error "A C compiler has been selected for C++."
6
+ #endif
7
+
8
+
9
+ /* Version number components: V=Version, R=Revision, P=Patch
10
+ Version date components: YYYY=Year, MM=Month, DD=Day */
11
+
12
+ #if defined(__COMO__)
13
+ # define COMPILER_ID "Comeau"
14
+ /* __COMO_VERSION__ = VRR */
15
+ # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
16
+ # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
17
+
18
+ #elif defined(__INTEL_COMPILER) || defined(__ICC)
19
+ # define COMPILER_ID "Intel"
20
+ # if defined(_MSC_VER)
21
+ # define SIMULATE_ID "MSVC"
22
+ # endif
23
+ /* __INTEL_COMPILER = VRP */
24
+ # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
25
+ # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
26
+ # if defined(__INTEL_COMPILER_UPDATE)
27
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
28
+ # else
29
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
30
+ # endif
31
+ # if defined(__INTEL_COMPILER_BUILD_DATE)
32
+ /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
33
+ # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
34
+ # endif
35
+ # if defined(_MSC_VER)
36
+ /* _MSC_VER = VVRR */
37
+ # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
38
+ # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
39
+ # endif
40
+
41
+ #elif defined(__PATHCC__)
42
+ # define COMPILER_ID "PathScale"
43
+ # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
44
+ # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
45
+ # if defined(__PATHCC_PATCHLEVEL__)
46
+ # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
47
+ # endif
48
+
49
+ #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
50
+ # define COMPILER_ID "Embarcadero"
51
+ # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
52
+ # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
53
+ # define COMPILER_VERSION_PATCH HEX(__CODEGEARC_VERSION__ & 0xFFFF)
54
+
55
+ #elif defined(__BORLANDC__)
56
+ # define COMPILER_ID "Borland"
57
+ /* __BORLANDC__ = 0xVRR */
58
+ # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
59
+ # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
60
+
61
+ #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
62
+ # define COMPILER_ID "Watcom"
63
+ /* __WATCOMC__ = VVRR */
64
+ # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
65
+ # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
66
+ # if (__WATCOMC__ % 10) > 0
67
+ # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
68
+ # endif
69
+
70
+ #elif defined(__WATCOMC__)
71
+ # define COMPILER_ID "OpenWatcom"
72
+ /* __WATCOMC__ = VVRP + 1100 */
73
+ # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
74
+ # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
75
+ # if (__WATCOMC__ % 10) > 0
76
+ # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
77
+ # endif
78
+
79
+ #elif defined(__SUNPRO_CC)
80
+ # define COMPILER_ID "SunPro"
81
+ # if __SUNPRO_CC >= 0x5100
82
+ /* __SUNPRO_CC = 0xVRRP */
83
+ # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
84
+ # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
85
+ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
86
+ # else
87
+ /* __SUNPRO_CC = 0xVRP */
88
+ # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
89
+ # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
90
+ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
91
+ # endif
92
+
93
+ #elif defined(__HP_aCC)
94
+ # define COMPILER_ID "HP"
95
+ /* __HP_aCC = VVRRPP */
96
+ # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
97
+ # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
98
+ # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
99
+
100
+ #elif defined(__DECCXX)
101
+ # define COMPILER_ID "Compaq"
102
+ /* __DECCXX_VER = VVRRTPPPP */
103
+ # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
104
+ # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
105
+ # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
106
+
107
+ #elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
108
+ # define COMPILER_ID "zOS"
109
+ /* __IBMCPP__ = VRP */
110
+ # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
111
+ # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
112
+ # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
113
+
114
+ #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
115
+ # define COMPILER_ID "XL"
116
+ /* __IBMCPP__ = VRP */
117
+ # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
118
+ # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
119
+ # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
120
+
121
+ #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
122
+ # define COMPILER_ID "VisualAge"
123
+ /* __IBMCPP__ = VRP */
124
+ # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
125
+ # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
126
+ # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
127
+
128
+ #elif defined(__PGI)
129
+ # define COMPILER_ID "PGI"
130
+ # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
131
+ # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
132
+ # if defined(__PGIC_PATCHLEVEL__)
133
+ # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
134
+ # endif
135
+
136
+ #elif defined(_CRAYC)
137
+ # define COMPILER_ID "Cray"
138
+ # define COMPILER_VERSION_MAJOR DEC(_RELEASE)
139
+ # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
140
+
141
+ #elif defined(__TI_COMPILER_VERSION__)
142
+ # define COMPILER_ID "TI"
143
+ /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
144
+ # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
145
+ # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
146
+ # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
147
+
148
+ #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
149
+ # define COMPILER_ID "Fujitsu"
150
+
151
+ #elif defined(__SCO_VERSION__)
152
+ # define COMPILER_ID "SCO"
153
+
154
+ #elif defined(__clang__) && defined(__apple_build_version__)
155
+ # define COMPILER_ID "AppleClang"
156
+ # if defined(_MSC_VER)
157
+ # define SIMULATE_ID "MSVC"
158
+ # endif
159
+ # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
160
+ # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
161
+ # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
162
+ # if defined(_MSC_VER)
163
+ /* _MSC_VER = VVRR */
164
+ # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
165
+ # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
166
+ # endif
167
+ # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
168
+
169
+ #elif defined(__clang__)
170
+ # define COMPILER_ID "Clang"
171
+ # if defined(_MSC_VER)
172
+ # define SIMULATE_ID "MSVC"
173
+ # endif
174
+ # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
175
+ # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
176
+ # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
177
+ # if defined(_MSC_VER)
178
+ /* _MSC_VER = VVRR */
179
+ # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
180
+ # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
181
+ # endif
182
+
183
+ #elif defined(__GNUC__)
184
+ # define COMPILER_ID "GNU"
185
+ # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
186
+ # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
187
+ # if defined(__GNUC_PATCHLEVEL__)
188
+ # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
189
+ # endif
190
+
191
+ #elif defined(_MSC_VER)
192
+ # define COMPILER_ID "MSVC"
193
+ /* _MSC_VER = VVRR */
194
+ # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
195
+ # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
196
+ # if defined(_MSC_FULL_VER)
197
+ # if _MSC_VER >= 1400
198
+ /* _MSC_FULL_VER = VVRRPPPPP */
199
+ # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
200
+ # else
201
+ /* _MSC_FULL_VER = VVRRPPPP */
202
+ # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
203
+ # endif
204
+ # endif
205
+ # if defined(_MSC_BUILD)
206
+ # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
207
+ # endif
208
+
209
+ #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
210
+ # define COMPILER_ID "ADSP"
211
+ #if defined(__VISUALDSPVERSION__)
212
+ /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
213
+ # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
214
+ # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
215
+ # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
216
+ #endif
217
+
218
+ #elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
219
+ # define COMPILER_ID "IAR"
220
+
221
+ #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
222
+ # define COMPILER_ID "MIPSpro"
223
+ # if defined(_SGI_COMPILER_VERSION)
224
+ /* _SGI_COMPILER_VERSION = VRP */
225
+ # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
226
+ # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
227
+ # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
228
+ # else
229
+ /* _COMPILER_VERSION = VRP */
230
+ # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
231
+ # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
232
+ # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
233
+ # endif
234
+
235
+
236
+ /* These compilers are either not known or too old to define an
237
+ identification macro. Try to identify the platform and guess that
238
+ it is the native compiler. */
239
+ #elif defined(__sgi)
240
+ # define COMPILER_ID "MIPSpro"
241
+
242
+ #elif defined(__hpux) || defined(__hpua)
243
+ # define COMPILER_ID "HP"
244
+
245
+ #else /* unknown compiler */
246
+ # define COMPILER_ID ""
247
+ #endif
248
+
249
+ /* Construct the string literal in pieces to prevent the source from
250
+ getting matched. Store it in a pointer rather than an array
251
+ because some compilers will just produce instructions to fill the
252
+ array rather than assigning a pointer to a static array. */
253
+ char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
254
+ #ifdef SIMULATE_ID
255
+ char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
256
+ #endif
257
+
258
+ #ifdef __QNXNTO__
259
+ char const* qnxnto = "INFO" ":" "qnxnto[]";
260
+ #endif
261
+
262
+ /* Identify known platforms by name. */
263
+ #if defined(__linux) || defined(__linux__) || defined(linux)
264
+ # define PLATFORM_ID "Linux"
265
+
266
+ #elif defined(__CYGWIN__)
267
+ # define PLATFORM_ID "Cygwin"
268
+
269
+ #elif defined(__MINGW32__)
270
+ # define PLATFORM_ID "MinGW"
271
+
272
+ #elif defined(__APPLE__)
273
+ # define PLATFORM_ID "Darwin"
274
+
275
+ #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
276
+ # define PLATFORM_ID "Windows"
277
+
278
+ #elif defined(__FreeBSD__) || defined(__FreeBSD)
279
+ # define PLATFORM_ID "FreeBSD"
280
+
281
+ #elif defined(__NetBSD__) || defined(__NetBSD)
282
+ # define PLATFORM_ID "NetBSD"
283
+
284
+ #elif defined(__OpenBSD__) || defined(__OPENBSD)
285
+ # define PLATFORM_ID "OpenBSD"
286
+
287
+ #elif defined(__sun) || defined(sun)
288
+ # define PLATFORM_ID "SunOS"
289
+
290
+ #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
291
+ # define PLATFORM_ID "AIX"
292
+
293
+ #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
294
+ # define PLATFORM_ID "IRIX"
295
+
296
+ #elif defined(__hpux) || defined(__hpux__)
297
+ # define PLATFORM_ID "HP-UX"
298
+
299
+ #elif defined(__HAIKU__)
300
+ # define PLATFORM_ID "Haiku"
301
+
302
+ #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
303
+ # define PLATFORM_ID "BeOS"
304
+
305
+ #elif defined(__QNX__) || defined(__QNXNTO__)
306
+ # define PLATFORM_ID "QNX"
307
+
308
+ #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
309
+ # define PLATFORM_ID "Tru64"
310
+
311
+ #elif defined(__riscos) || defined(__riscos__)
312
+ # define PLATFORM_ID "RISCos"
313
+
314
+ #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
315
+ # define PLATFORM_ID "SINIX"
316
+
317
+ #elif defined(__UNIX_SV__)
318
+ # define PLATFORM_ID "UNIX_SV"
319
+
320
+ #elif defined(__bsdos__)
321
+ # define PLATFORM_ID "BSDOS"
322
+
323
+ #elif defined(_MPRAS) || defined(MPRAS)
324
+ # define PLATFORM_ID "MP-RAS"
325
+
326
+ #elif defined(__osf) || defined(__osf__)
327
+ # define PLATFORM_ID "OSF1"
328
+
329
+ #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
330
+ # define PLATFORM_ID "SCO_SV"
331
+
332
+ #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
333
+ # define PLATFORM_ID "ULTRIX"
334
+
335
+ #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
336
+ # define PLATFORM_ID "Xenix"
337
+
338
+ #elif defined(__WATCOMC__)
339
+ # if defined(__LINUX__)
340
+ # define PLATFORM_ID "Linux"
341
+
342
+ # elif defined(__DOS__)
343
+ # define PLATFORM_ID "DOS"
344
+
345
+ # elif defined(__OS2__)
346
+ # define PLATFORM_ID "OS2"
347
+
348
+ # elif defined(__WINDOWS__)
349
+ # define PLATFORM_ID "Windows3x"
350
+
351
+ # else /* unknown platform */
352
+ # define PLATFORM_ID ""
353
+ # endif
354
+
355
+ #else /* unknown platform */
356
+ # define PLATFORM_ID ""
357
+
358
+ #endif
359
+
360
+ /* For windows compilers MSVC and Intel we can determine
361
+ the architecture of the compiler being used. This is because
362
+ the compilers do not have flags that can change the architecture,
363
+ but rather depend on which compiler is being used
364
+ */
365
+ #if defined(_WIN32) && defined(_MSC_VER)
366
+ # if defined(_M_IA64)
367
+ # define ARCHITECTURE_ID "IA64"
368
+
369
+ # elif defined(_M_X64) || defined(_M_AMD64)
370
+ # define ARCHITECTURE_ID "x64"
371
+
372
+ # elif defined(_M_IX86)
373
+ # define ARCHITECTURE_ID "X86"
374
+
375
+ # elif defined(_M_ARM)
376
+ # define ARCHITECTURE_ID "ARM"
377
+
378
+ # elif defined(_M_MIPS)
379
+ # define ARCHITECTURE_ID "MIPS"
380
+
381
+ # elif defined(_M_SH)
382
+ # define ARCHITECTURE_ID "SHx"
383
+
384
+ # else /* unknown architecture */
385
+ # define ARCHITECTURE_ID ""
386
+ # endif
387
+
388
+ #elif defined(__WATCOMC__)
389
+ # if defined(_M_I86)
390
+ # define ARCHITECTURE_ID "I86"
391
+
392
+ # elif defined(_M_IX86)
393
+ # define ARCHITECTURE_ID "X86"
394
+
395
+ # else /* unknown architecture */
396
+ # define ARCHITECTURE_ID ""
397
+ # endif
398
+
399
+ #else
400
+ # define ARCHITECTURE_ID ""
401
+ #endif
402
+
403
+ /* Convert integer to decimal digit literals. */
404
+ #define DEC(n) \
405
+ ('0' + (((n) / 10000000)%10)), \
406
+ ('0' + (((n) / 1000000)%10)), \
407
+ ('0' + (((n) / 100000)%10)), \
408
+ ('0' + (((n) / 10000)%10)), \
409
+ ('0' + (((n) / 1000)%10)), \
410
+ ('0' + (((n) / 100)%10)), \
411
+ ('0' + (((n) / 10)%10)), \
412
+ ('0' + ((n) % 10))
413
+
414
+ /* Convert integer to hex digit literals. */
415
+ #define HEX(n) \
416
+ ('0' + ((n)>>28 & 0xF)), \
417
+ ('0' + ((n)>>24 & 0xF)), \
418
+ ('0' + ((n)>>20 & 0xF)), \
419
+ ('0' + ((n)>>16 & 0xF)), \
420
+ ('0' + ((n)>>12 & 0xF)), \
421
+ ('0' + ((n)>>8 & 0xF)), \
422
+ ('0' + ((n)>>4 & 0xF)), \
423
+ ('0' + ((n) & 0xF))
424
+
425
+ /* Construct a string literal encoding the version number components. */
426
+ #ifdef COMPILER_VERSION_MAJOR
427
+ char const info_version[] = {
428
+ 'I', 'N', 'F', 'O', ':',
429
+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
430
+ COMPILER_VERSION_MAJOR,
431
+ # ifdef COMPILER_VERSION_MINOR
432
+ '.', COMPILER_VERSION_MINOR,
433
+ # ifdef COMPILER_VERSION_PATCH
434
+ '.', COMPILER_VERSION_PATCH,
435
+ # ifdef COMPILER_VERSION_TWEAK
436
+ '.', COMPILER_VERSION_TWEAK,
437
+ # endif
438
+ # endif
439
+ # endif
440
+ ']','\0'};
441
+ #endif
442
+
443
+ /* Construct a string literal encoding the version number components. */
444
+ #ifdef SIMULATE_VERSION_MAJOR
445
+ char const info_simulate_version[] = {
446
+ 'I', 'N', 'F', 'O', ':',
447
+ 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
448
+ SIMULATE_VERSION_MAJOR,
449
+ # ifdef SIMULATE_VERSION_MINOR
450
+ '.', SIMULATE_VERSION_MINOR,
451
+ # ifdef SIMULATE_VERSION_PATCH
452
+ '.', SIMULATE_VERSION_PATCH,
453
+ # ifdef SIMULATE_VERSION_TWEAK
454
+ '.', SIMULATE_VERSION_TWEAK,
455
+ # endif
456
+ # endif
457
+ # endif
458
+ ']','\0'};
459
+ #endif
460
+
461
+ /* Construct the string literal in pieces to prevent the source from
462
+ getting matched. Store it in a pointer rather than an array
463
+ because some compilers will just produce instructions to fill the
464
+ array rather than assigning a pointer to a static array. */
465
+ char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
466
+ char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
467
+
468
+
469
+
470
+
471
+ /*--------------------------------------------------------------------------*/
472
+
473
+ int main(int argc, char* argv[])
474
+ {
475
+ int require = 0;
476
+ require += info_compiler[argc];
477
+ require += info_platform[argc];
478
+ #ifdef COMPILER_VERSION_MAJOR
479
+ require += info_version[argc];
480
+ #endif
481
+ #ifdef SIMULATE_ID
482
+ require += info_simulate[argc];
483
+ #endif
484
+ #ifdef SIMULATE_VERSION_MAJOR
485
+ require += info_simulate_version[argc];
486
+ #endif
487
+ (void)argv;
488
+ return require;
489
+ }
@@ -0,0 +1,16 @@
1
+ # CMAKE generated file: DO NOT EDIT!
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.2
3
+
4
+ # Relative path conversion top directories.
5
+ set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark")
6
+ set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build")
7
+
8
+ # Force unix paths in dependencies.
9
+ set(CMAKE_FORCE_UNIX_PATHS 1)
10
+
11
+
12
+ # The C and CXX include file regular expressions for this directory.
13
+ set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
14
+ set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
15
+ set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
16
+ set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
@@ -0,0 +1,30 @@
1
+ Performing C SOURCE FILE Test HAVE_FLAG_ADDRESS_SANITIZER failed with the following output:
2
+ Change Dir: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles/CMakeTmp
3
+
4
+ Run Build Command:"/usr/bin/make" "cmTryCompileExec988159652/fast"
5
+ /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTryCompileExec988159652.dir/build.make CMakeFiles/cmTryCompileExec988159652.dir/build
6
+ /usr/local/Cellar/cmake/3.2.2/bin/cmake -E cmake_progress_report /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
7
+ Building C object CMakeFiles/cmTryCompileExec988159652.dir/src.c.o
8
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I/usr/local/include -DHAVE_FLAG_ADDRESS_SANITIZER -Werror -faddress-sanitizer -faddress-sanitizer -o CMakeFiles/cmTryCompileExec988159652.dir/src.c.o -c /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles/CMakeTmp/src.c
9
+ clang: error: unknown argument: '-faddress-sanitizer'
10
+ clang: error: unknown argument: '-faddress-sanitizer'
11
+ make[1]: *** [CMakeFiles/cmTryCompileExec988159652.dir/src.c.o] Error 1
12
+ make: *** [cmTryCompileExec988159652/fast] Error 2
13
+
14
+ Source file was:
15
+ int main(void) { return 0; }
16
+ Performing C SOURCE FILE Test HAVE_FLAG_SANITIZE_ADDRESS failed with the following output:
17
+ Change Dir: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles/CMakeTmp
18
+
19
+ Run Build Command:"/usr/bin/make" "cmTryCompileExec1644334084/fast"
20
+ /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTryCompileExec1644334084.dir/build.make CMakeFiles/cmTryCompileExec1644334084.dir/build
21
+ /usr/local/Cellar/cmake/3.2.2/bin/cmake -E cmake_progress_report /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles/CMakeTmp/CMakeFiles 1
22
+ Building C object CMakeFiles/cmTryCompileExec1644334084.dir/src.c.o
23
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I/usr/local/include -DHAVE_FLAG_SANITIZE_ADDRESS -Werror -fsanitize=address -fsanitize=address -o CMakeFiles/cmTryCompileExec1644334084.dir/src.c.o -c /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles/CMakeTmp/src.c
24
+ clang: error: unsupported argument 'address' to option 'fsanitize='
25
+ clang: error: unsupported argument 'address' to option 'fsanitize='
26
+ make[1]: *** [CMakeFiles/cmTryCompileExec1644334084.dir/src.c.o] Error 1
27
+ make: *** [cmTryCompileExec1644334084/fast] Error 2
28
+
29
+ Source file was:
30
+ int main(void) { return 0; }