zxing_cpp_no_cmake 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.gitmodules +0 -0
  4. data/CHANGELOG.rdoc +6 -0
  5. data/Gemfile +3 -0
  6. data/Manifest.txt +375 -0
  7. data/README.rdoc +141 -0
  8. data/Rakefile +28 -0
  9. data/bin/zxd +87 -0
  10. data/bin/zxe +53 -0
  11. data/ext/zxing/extconf.rb +20 -0
  12. data/ext/zxing/zxing-cpp/.gitignore +2 -0
  13. data/ext/zxing/zxing-cpp/AUTHORS +115 -0
  14. data/ext/zxing/zxing-cpp/CMakeLists.txt +89 -0
  15. data/ext/zxing/zxing-cpp/COPYING +201 -0
  16. data/ext/zxing/zxing-cpp/NOTICE +65 -0
  17. data/ext/zxing/zxing-cpp/README.md +45 -0
  18. data/ext/zxing/zxing-cpp/build/CMakeCache.txt +382 -0
  19. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CMakeCCompiler.cmake +76 -0
  20. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CMakeCXXCompiler.cmake +79 -0
  21. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CMakeDetermineCompilerABI_C.bin +0 -0
  22. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CMakeDetermineCompilerABI_CXX.bin +0 -0
  23. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CMakeSystem.cmake +15 -0
  24. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CompilerIdC/CMakeCCompilerId.c +665 -0
  25. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CompilerIdC/a.out +0 -0
  26. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CompilerIdCXX/CMakeCXXCompilerId.cpp +644 -0
  27. data/ext/zxing/zxing-cpp/build/CMakeFiles/3.15.4/CompilerIdCXX/a.out +0 -0
  28. data/ext/zxing/zxing-cpp/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  29. data/ext/zxing/zxing-cpp/build/CMakeFiles/CMakeOutput.log +447 -0
  30. data/ext/zxing/zxing-cpp/build/CMakeFiles/Makefile.cmake +125 -0
  31. data/ext/zxing/zxing-cpp/build/CMakeFiles/Makefile2 +177 -0
  32. data/ext/zxing/zxing-cpp/build/CMakeFiles/TargetDirectories.txt +9 -0
  33. data/ext/zxing/zxing-cpp/build/CMakeFiles/cmake.check_cache +1 -0
  34. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/CXX.includecache +1892 -0
  35. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/DependInfo.cmake +120 -0
  36. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/build.make +1584 -0
  37. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/cmake_clean.cmake +109 -0
  38. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/cmake_clean_target.cmake +3 -0
  39. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/depend.internal +1465 -0
  40. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/depend.make +1465 -0
  41. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/flags.make +10 -0
  42. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/link.txt +2 -0
  43. data/ext/zxing/zxing-cpp/build/CMakeFiles/libzxing.dir/progress.make +102 -0
  44. data/ext/zxing/zxing-cpp/build/CMakeFiles/progress.marks +1 -0
  45. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/CXX.includecache +344 -0
  46. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/DependInfo.cmake +33 -0
  47. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/build.make +266 -0
  48. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/cmake_clean.cmake +21 -0
  49. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/depend.internal +103 -0
  50. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/depend.make +103 -0
  51. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/flags.make +10 -0
  52. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/link.txt +1 -0
  53. data/ext/zxing/zxing-cpp/build/CMakeFiles/testrunner.dir/progress.make +14 -0
  54. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/CXX.includecache +378 -0
  55. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/DependInfo.cmake +25 -0
  56. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/build.make +145 -0
  57. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/cmake_clean.cmake +13 -0
  58. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/depend.internal +53 -0
  59. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/depend.make +53 -0
  60. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/flags.make +10 -0
  61. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/link.txt +1 -0
  62. data/ext/zxing/zxing-cpp/build/CMakeFiles/zxing.dir/progress.make +6 -0
  63. data/ext/zxing/zxing-cpp/build/Makefile +3706 -0
  64. data/ext/zxing/zxing-cpp/build/cmake_install.cmake +73 -0
  65. data/ext/zxing/zxing-cpp/build/libzxing.a +0 -0
  66. data/ext/zxing/zxing-cpp/build/testrunner +0 -0
  67. data/ext/zxing/zxing-cpp/build/zxing +0 -0
  68. data/ext/zxing/zxing-cpp/cli/src/ImageReaderSource.cpp +113 -0
  69. data/ext/zxing/zxing-cpp/cli/src/ImageReaderSource.h +40 -0
  70. data/ext/zxing/zxing-cpp/cli/src/jpgd.cpp +3174 -0
  71. data/ext/zxing/zxing-cpp/cli/src/jpgd.h +319 -0
  72. data/ext/zxing/zxing-cpp/cli/src/lodepng.cpp +6261 -0
  73. data/ext/zxing/zxing-cpp/cli/src/lodepng.h +1695 -0
  74. data/ext/zxing/zxing-cpp/cli/src/main.cpp +297 -0
  75. data/ext/zxing/zxing-cpp/cmake/FindCPPUNIT.cmake +54 -0
  76. data/ext/zxing/zxing-cpp/cmake/FindIconv.cmake +57 -0
  77. data/ext/zxing/zxing-cpp/core/src/bigint/.gitignore +6 -0
  78. data/ext/zxing/zxing-cpp/core/src/bigint/BigInteger.cc +405 -0
  79. data/ext/zxing/zxing-cpp/core/src/bigint/BigInteger.hh +215 -0
  80. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerAlgorithms.cc +70 -0
  81. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerAlgorithms.hh +25 -0
  82. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerLibrary.hh +8 -0
  83. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerUtils.cc +50 -0
  84. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerUtils.hh +72 -0
  85. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsigned.cc +697 -0
  86. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsigned.hh +418 -0
  87. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsignedInABase.cc +125 -0
  88. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsignedInABase.hh +122 -0
  89. data/ext/zxing/zxing-cpp/core/src/bigint/ChangeLog +146 -0
  90. data/ext/zxing/zxing-cpp/core/src/bigint/Makefile +73 -0
  91. data/ext/zxing/zxing-cpp/core/src/bigint/NumberlikeArray.hh +177 -0
  92. data/ext/zxing/zxing-cpp/core/src/bigint/README +71 -0
  93. data/ext/zxing/zxing-cpp/core/src/win32/zxing/iconv.h +14 -0
  94. data/ext/zxing/zxing-cpp/core/src/win32/zxing/stdint.h +247 -0
  95. data/ext/zxing/zxing-cpp/core/src/win32/zxing/win_iconv.c +2035 -0
  96. data/ext/zxing/zxing-cpp/core/src/zxing/BarcodeFormat.cpp +40 -0
  97. data/ext/zxing/zxing-cpp/core/src/zxing/BarcodeFormat.h +60 -0
  98. data/ext/zxing/zxing-cpp/core/src/zxing/Binarizer.cpp +45 -0
  99. data/ext/zxing/zxing-cpp/core/src/zxing/Binarizer.h +50 -0
  100. data/ext/zxing/zxing-cpp/core/src/zxing/BinaryBitmap.cpp +70 -0
  101. data/ext/zxing/zxing-cpp/core/src/zxing/BinaryBitmap.h +56 -0
  102. data/ext/zxing/zxing-cpp/core/src/zxing/ChecksumException.cpp +28 -0
  103. data/ext/zxing/zxing-cpp/core/src/zxing/ChecksumException.h +34 -0
  104. data/ext/zxing/zxing-cpp/core/src/zxing/DecodeHints.cpp +142 -0
  105. data/ext/zxing/zxing-cpp/core/src/zxing/DecodeHints.h +85 -0
  106. data/ext/zxing/zxing-cpp/core/src/zxing/Exception.cpp +43 -0
  107. data/ext/zxing/zxing-cpp/core/src/zxing/Exception.h +51 -0
  108. data/ext/zxing/zxing-cpp/core/src/zxing/FormatException.cpp +41 -0
  109. data/ext/zxing/zxing-cpp/core/src/zxing/FormatException.h +37 -0
  110. data/ext/zxing/zxing-cpp/core/src/zxing/IllegalStateException.h +35 -0
  111. data/ext/zxing/zxing-cpp/core/src/zxing/InvertedLuminanceSource.cpp +68 -0
  112. data/ext/zxing/zxing-cpp/core/src/zxing/InvertedLuminanceSource.h +48 -0
  113. data/ext/zxing/zxing-cpp/core/src/zxing/LuminanceSource.cpp +86 -0
  114. data/ext/zxing/zxing-cpp/core/src/zxing/LuminanceSource.h +59 -0
  115. data/ext/zxing/zxing-cpp/core/src/zxing/MultiFormatReader.cpp +124 -0
  116. data/ext/zxing/zxing-cpp/core/src/zxing/MultiFormatReader.h +48 -0
  117. data/ext/zxing/zxing-cpp/core/src/zxing/NotFoundException.h +35 -0
  118. data/ext/zxing/zxing-cpp/core/src/zxing/Reader.cpp +31 -0
  119. data/ext/zxing/zxing-cpp/core/src/zxing/Reader.h +40 -0
  120. data/ext/zxing/zxing-cpp/core/src/zxing/ReaderException.h +37 -0
  121. data/ext/zxing/zxing-cpp/core/src/zxing/Result.cpp +61 -0
  122. data/ext/zxing/zxing-cpp/core/src/zxing/Result.h +55 -0
  123. data/ext/zxing/zxing-cpp/core/src/zxing/ResultIO.cpp +34 -0
  124. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPoint.cpp +108 -0
  125. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPoint.h +55 -0
  126. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPointCallback.cpp +26 -0
  127. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPointCallback.h +39 -0
  128. data/ext/zxing/zxing-cpp/core/src/zxing/ZXing.h +133 -0
  129. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecDetectorResult.cpp +54 -0
  130. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecDetectorResult.h +48 -0
  131. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecReader.cpp +68 -0
  132. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecReader.h +49 -0
  133. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/decoder/Decoder.cpp +489 -0
  134. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/decoder/Decoder.h +69 -0
  135. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/detector/Detector.cpp +548 -0
  136. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/detector/Detector.h +92 -0
  137. data/ext/zxing/zxing-cpp/core/src/zxing/common/Array.h +170 -0
  138. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitArray.cpp +155 -0
  139. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitArray.h +81 -0
  140. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitArrayIO.cpp +31 -0
  141. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitMatrix.cpp +143 -0
  142. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitMatrix.h +91 -0
  143. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitSource.cpp +76 -0
  144. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitSource.h +74 -0
  145. data/ext/zxing/zxing-cpp/core/src/zxing/common/CharacterSetECI.cpp +105 -0
  146. data/ext/zxing/zxing-cpp/core/src/zxing/common/CharacterSetECI.h +53 -0
  147. data/ext/zxing/zxing-cpp/core/src/zxing/common/Counted.h +140 -0
  148. data/ext/zxing/zxing-cpp/core/src/zxing/common/DecoderResult.cpp +46 -0
  149. data/ext/zxing/zxing-cpp/core/src/zxing/common/DecoderResult.h +51 -0
  150. data/ext/zxing/zxing-cpp/core/src/zxing/common/DetectorResult.cpp +39 -0
  151. data/ext/zxing/zxing-cpp/core/src/zxing/common/DetectorResult.h +43 -0
  152. data/ext/zxing/zxing-cpp/core/src/zxing/common/GlobalHistogramBinarizer.cpp +212 -0
  153. data/ext/zxing/zxing-cpp/core/src/zxing/common/GlobalHistogramBinarizer.h +48 -0
  154. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp +80 -0
  155. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleLuminanceSource.h +53 -0
  156. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp +81 -0
  157. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.h +46 -0
  158. data/ext/zxing/zxing-cpp/core/src/zxing/common/GridSampler.cpp +122 -0
  159. data/ext/zxing/zxing-cpp/core/src/zxing/common/GridSampler.h +45 -0
  160. data/ext/zxing/zxing-cpp/core/src/zxing/common/HybridBinarizer.cpp +226 -0
  161. data/ext/zxing/zxing-cpp/core/src/zxing/common/HybridBinarizer.h +67 -0
  162. data/ext/zxing/zxing-cpp/core/src/zxing/common/IllegalArgumentException.cpp +27 -0
  163. data/ext/zxing/zxing-cpp/core/src/zxing/common/IllegalArgumentException.h +36 -0
  164. data/ext/zxing/zxing-cpp/core/src/zxing/common/PerspectiveTransform.cpp +107 -0
  165. data/ext/zxing/zxing-cpp/core/src/zxing/common/PerspectiveTransform.h +49 -0
  166. data/ext/zxing/zxing-cpp/core/src/zxing/common/Point.h +47 -0
  167. data/ext/zxing/zxing-cpp/core/src/zxing/common/Str.cpp +61 -0
  168. data/ext/zxing/zxing-cpp/core/src/zxing/common/Str.h +51 -0
  169. data/ext/zxing/zxing-cpp/core/src/zxing/common/StringUtils.cpp +198 -0
  170. data/ext/zxing/zxing-cpp/core/src/zxing/common/StringUtils.h +52 -0
  171. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/JavaMath.h +43 -0
  172. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/MathUtils.h +57 -0
  173. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/MonochromeRectangleDetector.cpp +175 -0
  174. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/MonochromeRectangleDetector.h +62 -0
  175. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/WhiteRectangleDetector.cpp +330 -0
  176. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/WhiteRectangleDetector.h +59 -0
  177. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGF.cpp +150 -0
  178. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGF.h +73 -0
  179. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGFPoly.cpp +218 -0
  180. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGFPoly.h +56 -0
  181. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.cpp +174 -0
  182. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.h +49 -0
  183. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.cpp +30 -0
  184. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.h +33 -0
  185. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/DataMatrixReader.cpp +54 -0
  186. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/DataMatrixReader.h +45 -0
  187. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/Version.cpp +199 -0
  188. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/Version.h +87 -0
  189. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/BitMatrixParser.cpp +361 -0
  190. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/BitMatrixParser.h +59 -0
  191. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DataBlock.cpp +113 -0
  192. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DataBlock.h +49 -0
  193. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.cpp +415 -0
  194. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.h +104 -0
  195. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/Decoder.cpp +93 -0
  196. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/Decoder.h +49 -0
  197. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/CornerPoint.cpp +46 -0
  198. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/CornerPoint.h +43 -0
  199. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/Detector.cpp +447 -0
  200. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/Detector.h +94 -0
  201. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/DetectorException.cpp +23 -0
  202. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/DetectorException.h +23 -0
  203. data/ext/zxing/zxing-cpp/core/src/zxing/multi/ByQuadrantReader.cpp +75 -0
  204. data/ext/zxing/zxing-cpp/core/src/zxing/multi/ByQuadrantReader.h +42 -0
  205. data/ext/zxing/zxing-cpp/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp +137 -0
  206. data/ext/zxing/zxing-cpp/core/src/zxing/multi/GenericMultipleBarcodeReader.h +51 -0
  207. data/ext/zxing/zxing-cpp/core/src/zxing/multi/MultipleBarcodeReader.cpp +29 -0
  208. data/ext/zxing/zxing-cpp/core/src/zxing/multi/MultipleBarcodeReader.h +41 -0
  209. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/QRCodeMultiReader.cpp +58 -0
  210. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/QRCodeMultiReader.h +36 -0
  211. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiDetector.cpp +47 -0
  212. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiDetector.h +37 -0
  213. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiFinderPatternFinder.cpp +236 -0
  214. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiFinderPatternFinder.h +47 -0
  215. data/ext/zxing/zxing-cpp/core/src/zxing/oned/CodaBarReader.cpp +340 -0
  216. data/ext/zxing/zxing-cpp/core/src/zxing/oned/CodaBarReader.h +57 -0
  217. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code128Reader.cpp +497 -0
  218. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code128Reader.h +48 -0
  219. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code39Reader.cpp +329 -0
  220. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code39Reader.h +63 -0
  221. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code93Reader.cpp +303 -0
  222. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code93Reader.h +58 -0
  223. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN13Reader.cpp +85 -0
  224. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN13Reader.h +49 -0
  225. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN8Reader.cpp +65 -0
  226. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN8Reader.h +47 -0
  227. data/ext/zxing/zxing-cpp/core/src/zxing/oned/ITFReader.cpp +337 -0
  228. data/ext/zxing/zxing-cpp/core/src/zxing/oned/ITFReader.h +54 -0
  229. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatOneDReader.cpp +96 -0
  230. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatOneDReader.h +38 -0
  231. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatUPCEANReader.cpp +110 -0
  232. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatUPCEANReader.h +41 -0
  233. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDReader.cpp +228 -0
  234. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDReader.h +81 -0
  235. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDResultPoint.cpp +28 -0
  236. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDResultPoint.h +35 -0
  237. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCAReader.cpp +70 -0
  238. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCAReader.h +50 -0
  239. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEANReader.cpp +309 -0
  240. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEANReader.h +88 -0
  241. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEReader.cpp +146 -0
  242. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEReader.h +47 -0
  243. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/PDF417Reader.cpp +170 -0
  244. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/PDF417Reader.h +49 -0
  245. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/BitMatrixParser.cpp +997 -0
  246. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/BitMatrixParser.h +84 -0
  247. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/DecodedBitStreamParser.cpp +563 -0
  248. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/DecodedBitStreamParser.h +84 -0
  249. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/Decoder.cpp +118 -0
  250. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/Decoder.h +62 -0
  251. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ErrorCorrection.cpp +214 -0
  252. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ErrorCorrection.h +71 -0
  253. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusGF.cpp +120 -0
  254. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusGF.h +72 -0
  255. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusPoly.cpp +284 -0
  256. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusPoly.h +68 -0
  257. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/Detector.cpp +665 -0
  258. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/Detector.h +106 -0
  259. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/LinesSampler.cpp +715 -0
  260. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/LinesSampler.h +122 -0
  261. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.cpp +65 -0
  262. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.h +52 -0
  263. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/FormatInformation.cpp +117 -0
  264. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/FormatInformation.h +54 -0
  265. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/QRCodeReader.cpp +52 -0
  266. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/QRCodeReader.h +48 -0
  267. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/Version.cpp +560 -0
  268. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/Version.h +85 -0
  269. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.cpp +183 -0
  270. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.h +56 -0
  271. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataBlock.cpp +118 -0
  272. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataBlock.h +50 -0
  273. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataMask.cpp +159 -0
  274. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataMask.h +50 -0
  275. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.cpp +428 -0
  276. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.h +72 -0
  277. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Decoder.cpp +107 -0
  278. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Decoder.h +46 -0
  279. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Mode.cpp +90 -0
  280. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Mode.h +57 -0
  281. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPattern.cpp +47 -0
  282. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPattern.h +45 -0
  283. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.cpp +208 -0
  284. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.h +68 -0
  285. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/Detector.cpp +315 -0
  286. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/Detector.h +69 -0
  287. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPattern.cpp +69 -0
  288. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPattern.h +48 -0
  289. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.cpp +559 -0
  290. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h +76 -0
  291. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.cpp +41 -0
  292. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.h +47 -0
  293. data/ext/zxing/zxing-cpp/core/tests/src/TestRunner.cpp +30 -0
  294. data/ext/zxing/zxing-cpp/core/tests/src/common/BitArrayTest.cpp +216 -0
  295. data/ext/zxing/zxing-cpp/core/tests/src/common/BitArrayTest.h +61 -0
  296. data/ext/zxing/zxing-cpp/core/tests/src/common/BitMatrixTest.cpp +106 -0
  297. data/ext/zxing/zxing-cpp/core/tests/src/common/BitMatrixTest.h +55 -0
  298. data/ext/zxing/zxing-cpp/core/tests/src/common/BitSourceTest.cpp +49 -0
  299. data/ext/zxing/zxing-cpp/core/tests/src/common/BitSourceTest.h +42 -0
  300. data/ext/zxing/zxing-cpp/core/tests/src/common/CountedTest.cpp +58 -0
  301. data/ext/zxing/zxing-cpp/core/tests/src/common/CountedTest.h +46 -0
  302. data/ext/zxing/zxing-cpp/core/tests/src/common/PerspectiveTransformTest.cpp +69 -0
  303. data/ext/zxing/zxing-cpp/core/tests/src/common/PerspectiveTransformTest.h +47 -0
  304. data/ext/zxing/zxing-cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.cpp +129 -0
  305. data/ext/zxing/zxing-cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.h +62 -0
  306. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.cpp +47 -0
  307. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.h +45 -0
  308. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/FormatInformationTest.cpp +88 -0
  309. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/FormatInformationTest.h +47 -0
  310. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/VersionTest.cpp +88 -0
  311. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/VersionTest.h +49 -0
  312. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/DataMaskTest.cpp +132 -0
  313. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/DataMaskTest.h +91 -0
  314. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/ModeTest.cpp +52 -0
  315. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/ModeTest.h +47 -0
  316. data/ext/zxing/zxing.cc +224 -0
  317. data/lib/zxing.rb +50 -0
  318. data/lib/zxing/.gitignore +2 -0
  319. data/lib/zxing/aztec.rb +5 -0
  320. data/lib/zxing/aztec/aztec_reader.rb +14 -0
  321. data/lib/zxing/bad_image_exception.rb +4 -0
  322. data/lib/zxing/binarizer.rb +8 -0
  323. data/lib/zxing/binary_bitmap.rb +15 -0
  324. data/lib/zxing/checksum_exception.rb +4 -0
  325. data/lib/zxing/common.rb +7 -0
  326. data/lib/zxing/common/bit_matrix.rb +9 -0
  327. data/lib/zxing/common/hybrid_binarizer.rb +17 -0
  328. data/lib/zxing/common/illegal_argument_exception.rb +4 -0
  329. data/lib/zxing/datamatrix.rb +5 -0
  330. data/lib/zxing/datamatrix/data_matrix_reader.rb +14 -0
  331. data/lib/zxing/decodable.rb +11 -0
  332. data/lib/zxing/exception.rb +4 -0
  333. data/lib/zxing/ffi.rb +20 -0
  334. data/lib/zxing/ffi/aztec.rb +6 -0
  335. data/lib/zxing/ffi/aztec/aztec_reader.rb +9 -0
  336. data/lib/zxing/ffi/binarizer.rb +25 -0
  337. data/lib/zxing/ffi/binary_bitmap.rb +15 -0
  338. data/lib/zxing/ffi/common.rb +8 -0
  339. data/lib/zxing/ffi/common/bit_matrix.rb +12 -0
  340. data/lib/zxing/ffi/common/greyscale_luminance_source.rb +30 -0
  341. data/lib/zxing/ffi/common/hybrid_binarizer.rb +10 -0
  342. data/lib/zxing/ffi/datamatrix.rb +6 -0
  343. data/lib/zxing/ffi/datamatrix/data_matrix_reader.rb +9 -0
  344. data/lib/zxing/ffi/library.rb +102 -0
  345. data/lib/zxing/ffi/luminance_source.rb +18 -0
  346. data/lib/zxing/ffi/multi_format_reader.rb +9 -0
  347. data/lib/zxing/ffi/oned.rb +6 -0
  348. data/lib/zxing/ffi/oned/code_39_reader.rb +10 -0
  349. data/lib/zxing/ffi/qrcode.rb +8 -0
  350. data/lib/zxing/ffi/qrcode/decoder.rb +10 -0
  351. data/lib/zxing/ffi/qrcode/detector.rb +10 -0
  352. data/lib/zxing/ffi/reader.rb +58 -0
  353. data/lib/zxing/ffi/result.rb +23 -0
  354. data/lib/zxing/format_exception.rb +4 -0
  355. data/lib/zxing/illegal_argument_exception.rb +4 -0
  356. data/lib/zxing/image.rb +15 -0
  357. data/lib/zxing/luminance_source.rb +18 -0
  358. data/lib/zxing/multi_format_reader.rb +11 -0
  359. data/lib/zxing/not_found_exception.rb +4 -0
  360. data/lib/zxing/oned.rb +5 -0
  361. data/lib/zxing/oned/code_39_reader.rb +15 -0
  362. data/lib/zxing/qrcode.rb +8 -0
  363. data/lib/zxing/qrcode/decoder.rb +14 -0
  364. data/lib/zxing/qrcode/detector.rb +14 -0
  365. data/lib/zxing/qrcode/encoder.rb +8 -0
  366. data/lib/zxing/qrcode/encoder/byte_matrix.rb +18 -0
  367. data/lib/zxing/qrcode/encoder/encoder.rb +9 -0
  368. data/lib/zxing/qrcode/encoder/qrcode.rb +18 -0
  369. data/lib/zxing/reader.rb +8 -0
  370. data/lib/zxing/reader_exception.rb +4 -0
  371. data/lib/zxing/reed_solomon_exception.rb +2 -0
  372. data/lib/zxing/result.rb +18 -0
  373. data/lib/zxing/rmagick.rb +5 -0
  374. data/lib/zxing/rmagick/image.rb +109 -0
  375. data/lib/zxing/version.rb +33 -0
  376. data/zxing_cpp.gemspec +36 -0
  377. metadata +515 -0
@@ -0,0 +1,76 @@
1
+ set(CMAKE_C_COMPILER "/usr/bin/gcc")
2
+ set(CMAKE_C_COMPILER_ARG1 "")
3
+ set(CMAKE_C_COMPILER_ID "GNU")
4
+ set(CMAKE_C_COMPILER_VERSION "9.2.1")
5
+ set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
6
+ set(CMAKE_C_COMPILER_WRAPPER "")
7
+ set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
8
+ set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
9
+ set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
10
+ set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
11
+ set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
12
+
13
+ set(CMAKE_C_PLATFORM_ID "Linux")
14
+ set(CMAKE_C_SIMULATE_ID "")
15
+ set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
16
+ set(CMAKE_C_SIMULATE_VERSION "")
17
+
18
+
19
+
20
+ set(CMAKE_AR "/usr/bin/ar")
21
+ set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar")
22
+ set(CMAKE_RANLIB "/usr/bin/ranlib")
23
+ set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib")
24
+ set(CMAKE_LINKER "/usr/bin/ld")
25
+ set(CMAKE_MT "")
26
+ set(CMAKE_COMPILER_IS_GNUCC 1)
27
+ set(CMAKE_C_COMPILER_LOADED 1)
28
+ set(CMAKE_C_COMPILER_WORKS TRUE)
29
+ set(CMAKE_C_ABI_COMPILED TRUE)
30
+ set(CMAKE_COMPILER_IS_MINGW )
31
+ set(CMAKE_COMPILER_IS_CYGWIN )
32
+ if(CMAKE_COMPILER_IS_CYGWIN)
33
+ set(CYGWIN 1)
34
+ set(UNIX 1)
35
+ endif()
36
+
37
+ set(CMAKE_C_COMPILER_ENV_VAR "CC")
38
+
39
+ if(CMAKE_COMPILER_IS_MINGW)
40
+ set(MINGW 1)
41
+ endif()
42
+ set(CMAKE_C_COMPILER_ID_RUN 1)
43
+ set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
44
+ set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
45
+ set(CMAKE_C_LINKER_PREFERENCE 10)
46
+
47
+ # Save compiler ABI information.
48
+ set(CMAKE_C_SIZEOF_DATA_PTR "8")
49
+ set(CMAKE_C_COMPILER_ABI "ELF")
50
+ set(CMAKE_C_LIBRARY_ARCHITECTURE "")
51
+
52
+ if(CMAKE_C_SIZEOF_DATA_PTR)
53
+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
54
+ endif()
55
+
56
+ if(CMAKE_C_COMPILER_ABI)
57
+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
58
+ endif()
59
+
60
+ if(CMAKE_C_LIBRARY_ARCHITECTURE)
61
+ set(CMAKE_LIBRARY_ARCHITECTURE "")
62
+ endif()
63
+
64
+ set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
65
+ if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
66
+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
67
+ endif()
68
+
69
+
70
+
71
+
72
+
73
+ set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib64/gcc/x86_64-generic-linux/9/include;/usr/local/include;/usr/lib64/gcc/x86_64-generic-linux/9/include-fixed;/usr/include")
74
+ set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s")
75
+ set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib64/gcc/x86_64-generic-linux/9;/usr/lib64;/lib64")
76
+ set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
@@ -0,0 +1,79 @@
1
+ set(CMAKE_CXX_COMPILER "/usr/bin/g++")
2
+ set(CMAKE_CXX_COMPILER_ARG1 "")
3
+ set(CMAKE_CXX_COMPILER_ID "GNU")
4
+ set(CMAKE_CXX_COMPILER_VERSION "9.2.1")
5
+ set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
6
+ set(CMAKE_CXX_COMPILER_WRAPPER "")
7
+ set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
8
+ set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20")
9
+ set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
10
+ set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
11
+ set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
12
+ set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
13
+ set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
14
+
15
+ set(CMAKE_CXX_PLATFORM_ID "Linux")
16
+ set(CMAKE_CXX_SIMULATE_ID "")
17
+ set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
18
+ set(CMAKE_CXX_SIMULATE_VERSION "")
19
+
20
+
21
+
22
+ set(CMAKE_AR "/usr/bin/ar")
23
+ set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar")
24
+ set(CMAKE_RANLIB "/usr/bin/ranlib")
25
+ set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib")
26
+ set(CMAKE_LINKER "/usr/bin/ld")
27
+ set(CMAKE_MT "")
28
+ set(CMAKE_COMPILER_IS_GNUCXX 1)
29
+ set(CMAKE_CXX_COMPILER_LOADED 1)
30
+ set(CMAKE_CXX_COMPILER_WORKS TRUE)
31
+ set(CMAKE_CXX_ABI_COMPILED TRUE)
32
+ set(CMAKE_COMPILER_IS_MINGW )
33
+ set(CMAKE_COMPILER_IS_CYGWIN )
34
+ if(CMAKE_COMPILER_IS_CYGWIN)
35
+ set(CYGWIN 1)
36
+ set(UNIX 1)
37
+ endif()
38
+
39
+ set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
40
+
41
+ if(CMAKE_COMPILER_IS_MINGW)
42
+ set(MINGW 1)
43
+ endif()
44
+ set(CMAKE_CXX_COMPILER_ID_RUN 1)
45
+ set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
46
+ set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP)
47
+ set(CMAKE_CXX_LINKER_PREFERENCE 30)
48
+ set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
49
+
50
+ # Save compiler ABI information.
51
+ set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
52
+ set(CMAKE_CXX_COMPILER_ABI "ELF")
53
+ set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
54
+
55
+ if(CMAKE_CXX_SIZEOF_DATA_PTR)
56
+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
57
+ endif()
58
+
59
+ if(CMAKE_CXX_COMPILER_ABI)
60
+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
61
+ endif()
62
+
63
+ if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
64
+ set(CMAKE_LIBRARY_ARCHITECTURE "")
65
+ endif()
66
+
67
+ set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
68
+ if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
69
+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
70
+ endif()
71
+
72
+
73
+
74
+
75
+
76
+ set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/9;/usr/include/c++/9/x86_64-generic-linux;/usr/include/c++/9/backward;/usr/lib64/gcc/x86_64-generic-linux/9/include;/usr/local/include;/usr/lib64/gcc/x86_64-generic-linux/9/include-fixed;/usr/include")
77
+ set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
78
+ set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib64/gcc/x86_64-generic-linux/9;/usr/lib64;/lib64")
79
+ set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
@@ -0,0 +1,15 @@
1
+ set(CMAKE_HOST_SYSTEM "Linux-5.3.5-847.native")
2
+ set(CMAKE_HOST_SYSTEM_NAME "Linux")
3
+ set(CMAKE_HOST_SYSTEM_VERSION "5.3.5-847.native")
4
+ set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
5
+
6
+
7
+
8
+ set(CMAKE_SYSTEM "Linux-5.3.5-847.native")
9
+ set(CMAKE_SYSTEM_NAME "Linux")
10
+ set(CMAKE_SYSTEM_VERSION "5.3.5-847.native")
11
+ set(CMAKE_SYSTEM_PROCESSOR "x86_64")
12
+
13
+ set(CMAKE_CROSSCOMPILING "FALSE")
14
+
15
+ set(CMAKE_SYSTEM_LOADED 1)
@@ -0,0 +1,665 @@
1
+ #ifdef __cplusplus
2
+ # error "A C++ compiler has been selected for C."
3
+ #endif
4
+
5
+ #if defined(__18CXX)
6
+ # define ID_VOID_MAIN
7
+ #endif
8
+ #if defined(__CLASSIC_C__)
9
+ /* cv-qualifiers did not exist in K&R C */
10
+ # define const
11
+ # define volatile
12
+ #endif
13
+
14
+
15
+ /* Version number components: V=Version, R=Revision, P=Patch
16
+ Version date components: YYYY=Year, MM=Month, DD=Day */
17
+
18
+ #if defined(__INTEL_COMPILER) || defined(__ICC)
19
+ # define COMPILER_ID "Intel"
20
+ # if defined(_MSC_VER)
21
+ # define SIMULATE_ID "MSVC"
22
+ # endif
23
+ # if defined(__GNUC__)
24
+ # define SIMULATE_ID "GNU"
25
+ # endif
26
+ /* __INTEL_COMPILER = VRP */
27
+ # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
28
+ # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
29
+ # if defined(__INTEL_COMPILER_UPDATE)
30
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
31
+ # else
32
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
33
+ # endif
34
+ # if defined(__INTEL_COMPILER_BUILD_DATE)
35
+ /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
36
+ # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
37
+ # endif
38
+ # if defined(_MSC_VER)
39
+ /* _MSC_VER = VVRR */
40
+ # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
41
+ # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
42
+ # endif
43
+ # if defined(__GNUC__)
44
+ # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
45
+ # elif defined(__GNUG__)
46
+ # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
47
+ # endif
48
+ # if defined(__GNUC_MINOR__)
49
+ # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
50
+ # endif
51
+ # if defined(__GNUC_PATCHLEVEL__)
52
+ # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
53
+ # endif
54
+
55
+ #elif defined(__PATHCC__)
56
+ # define COMPILER_ID "PathScale"
57
+ # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
58
+ # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
59
+ # if defined(__PATHCC_PATCHLEVEL__)
60
+ # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
61
+ # endif
62
+
63
+ #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
64
+ # define COMPILER_ID "Embarcadero"
65
+ # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
66
+ # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
67
+ # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
68
+
69
+ #elif defined(__BORLANDC__)
70
+ # define COMPILER_ID "Borland"
71
+ /* __BORLANDC__ = 0xVRR */
72
+ # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
73
+ # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
74
+
75
+ #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
76
+ # define COMPILER_ID "Watcom"
77
+ /* __WATCOMC__ = VVRR */
78
+ # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
79
+ # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
80
+ # if (__WATCOMC__ % 10) > 0
81
+ # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
82
+ # endif
83
+
84
+ #elif defined(__WATCOMC__)
85
+ # define COMPILER_ID "OpenWatcom"
86
+ /* __WATCOMC__ = VVRP + 1100 */
87
+ # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
88
+ # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
89
+ # if (__WATCOMC__ % 10) > 0
90
+ # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
91
+ # endif
92
+
93
+ #elif defined(__SUNPRO_C)
94
+ # define COMPILER_ID "SunPro"
95
+ # if __SUNPRO_C >= 0x5100
96
+ /* __SUNPRO_C = 0xVRRP */
97
+ # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
98
+ # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
99
+ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
100
+ # else
101
+ /* __SUNPRO_CC = 0xVRP */
102
+ # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
103
+ # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
104
+ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
105
+ # endif
106
+
107
+ #elif defined(__HP_cc)
108
+ # define COMPILER_ID "HP"
109
+ /* __HP_cc = VVRRPP */
110
+ # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
111
+ # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
112
+ # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
113
+
114
+ #elif defined(__DECC)
115
+ # define COMPILER_ID "Compaq"
116
+ /* __DECC_VER = VVRRTPPPP */
117
+ # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
118
+ # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
119
+ # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
120
+
121
+ #elif defined(__IBMC__) && defined(__COMPILER_VER__)
122
+ # define COMPILER_ID "zOS"
123
+ /* __IBMC__ = VRP */
124
+ # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
125
+ # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
126
+ # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
127
+
128
+ #elif defined(__ibmxl__) && defined(__clang__)
129
+ # define COMPILER_ID "XLClang"
130
+ # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
131
+ # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
132
+ # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
133
+ # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
134
+
135
+
136
+ #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
137
+ # define COMPILER_ID "XL"
138
+ /* __IBMC__ = VRP */
139
+ # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
140
+ # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
141
+ # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
142
+
143
+ #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
144
+ # define COMPILER_ID "VisualAge"
145
+ /* __IBMC__ = VRP */
146
+ # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
147
+ # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
148
+ # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
149
+
150
+ #elif defined(__PGI)
151
+ # define COMPILER_ID "PGI"
152
+ # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
153
+ # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
154
+ # if defined(__PGIC_PATCHLEVEL__)
155
+ # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
156
+ # endif
157
+
158
+ #elif defined(_CRAYC)
159
+ # define COMPILER_ID "Cray"
160
+ # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
161
+ # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
162
+
163
+ #elif defined(__TI_COMPILER_VERSION__)
164
+ # define COMPILER_ID "TI"
165
+ /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
166
+ # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
167
+ # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
168
+ # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
169
+
170
+ #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
171
+ # define COMPILER_ID "Fujitsu"
172
+
173
+ #elif defined(__ghs__)
174
+ # define COMPILER_ID "GHS"
175
+ /* __GHS_VERSION_NUMBER = VVVVRP */
176
+ # ifdef __GHS_VERSION_NUMBER
177
+ # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
178
+ # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
179
+ # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
180
+ # endif
181
+
182
+ #elif defined(__TINYC__)
183
+ # define COMPILER_ID "TinyCC"
184
+
185
+ #elif defined(__BCC__)
186
+ # define COMPILER_ID "Bruce"
187
+
188
+ #elif defined(__SCO_VERSION__)
189
+ # define COMPILER_ID "SCO"
190
+
191
+ #elif defined(__ARMCC_VERSION) && !defined(__clang__)
192
+ # define COMPILER_ID "ARMCC"
193
+ #if __ARMCC_VERSION >= 1000000
194
+ /* __ARMCC_VERSION = VRRPPPP */
195
+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
196
+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
197
+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
198
+ #else
199
+ /* __ARMCC_VERSION = VRPPPP */
200
+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
201
+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
202
+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
203
+ #endif
204
+
205
+
206
+ #elif defined(__clang__) && defined(__apple_build_version__)
207
+ # define COMPILER_ID "AppleClang"
208
+ # if defined(_MSC_VER)
209
+ # define SIMULATE_ID "MSVC"
210
+ # endif
211
+ # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
212
+ # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
213
+ # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
214
+ # if defined(_MSC_VER)
215
+ /* _MSC_VER = VVRR */
216
+ # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
217
+ # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
218
+ # endif
219
+ # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
220
+
221
+ #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
222
+ # define COMPILER_ID "ARMClang"
223
+ # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
224
+ # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
225
+ # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
226
+ # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
227
+
228
+ #elif defined(__clang__)
229
+ # define COMPILER_ID "Clang"
230
+ # if defined(_MSC_VER)
231
+ # define SIMULATE_ID "MSVC"
232
+ # endif
233
+ # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
234
+ # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
235
+ # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
236
+ # if defined(_MSC_VER)
237
+ /* _MSC_VER = VVRR */
238
+ # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
239
+ # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
240
+ # endif
241
+
242
+ #elif defined(__GNUC__)
243
+ # define COMPILER_ID "GNU"
244
+ # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
245
+ # if defined(__GNUC_MINOR__)
246
+ # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
247
+ # endif
248
+ # if defined(__GNUC_PATCHLEVEL__)
249
+ # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
250
+ # endif
251
+
252
+ #elif defined(_MSC_VER)
253
+ # define COMPILER_ID "MSVC"
254
+ /* _MSC_VER = VVRR */
255
+ # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
256
+ # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
257
+ # if defined(_MSC_FULL_VER)
258
+ # if _MSC_VER >= 1400
259
+ /* _MSC_FULL_VER = VVRRPPPPP */
260
+ # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
261
+ # else
262
+ /* _MSC_FULL_VER = VVRRPPPP */
263
+ # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
264
+ # endif
265
+ # endif
266
+ # if defined(_MSC_BUILD)
267
+ # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
268
+ # endif
269
+
270
+ #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
271
+ # define COMPILER_ID "ADSP"
272
+ #if defined(__VISUALDSPVERSION__)
273
+ /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
274
+ # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
275
+ # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
276
+ # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
277
+ #endif
278
+
279
+ #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
280
+ # define COMPILER_ID "IAR"
281
+ # if defined(__VER__) && defined(__ICCARM__)
282
+ # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
283
+ # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
284
+ # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
285
+ # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
286
+ # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__))
287
+ # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
288
+ # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
289
+ # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
290
+ # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
291
+ # endif
292
+
293
+ #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
294
+ # define COMPILER_ID "SDCC"
295
+ # if defined(__SDCC_VERSION_MAJOR)
296
+ # define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
297
+ # define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
298
+ # define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
299
+ # else
300
+ /* SDCC = VRP */
301
+ # define COMPILER_VERSION_MAJOR DEC(SDCC/100)
302
+ # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
303
+ # define COMPILER_VERSION_PATCH DEC(SDCC % 10)
304
+ # endif
305
+
306
+
307
+ /* These compilers are either not known or too old to define an
308
+ identification macro. Try to identify the platform and guess that
309
+ it is the native compiler. */
310
+ #elif defined(__hpux) || defined(__hpua)
311
+ # define COMPILER_ID "HP"
312
+
313
+ #else /* unknown compiler */
314
+ # define COMPILER_ID ""
315
+ #endif
316
+
317
+ /* Construct the string literal in pieces to prevent the source from
318
+ getting matched. Store it in a pointer rather than an array
319
+ because some compilers will just produce instructions to fill the
320
+ array rather than assigning a pointer to a static array. */
321
+ char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
322
+ #ifdef SIMULATE_ID
323
+ char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
324
+ #endif
325
+
326
+ #ifdef __QNXNTO__
327
+ char const* qnxnto = "INFO" ":" "qnxnto[]";
328
+ #endif
329
+
330
+ #if defined(__CRAYXE) || defined(__CRAYXC)
331
+ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
332
+ #endif
333
+
334
+ #define STRINGIFY_HELPER(X) #X
335
+ #define STRINGIFY(X) STRINGIFY_HELPER(X)
336
+
337
+ /* Identify known platforms by name. */
338
+ #if defined(__linux) || defined(__linux__) || defined(linux)
339
+ # define PLATFORM_ID "Linux"
340
+
341
+ #elif defined(__CYGWIN__)
342
+ # define PLATFORM_ID "Cygwin"
343
+
344
+ #elif defined(__MINGW32__)
345
+ # define PLATFORM_ID "MinGW"
346
+
347
+ #elif defined(__APPLE__)
348
+ # define PLATFORM_ID "Darwin"
349
+
350
+ #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
351
+ # define PLATFORM_ID "Windows"
352
+
353
+ #elif defined(__FreeBSD__) || defined(__FreeBSD)
354
+ # define PLATFORM_ID "FreeBSD"
355
+
356
+ #elif defined(__NetBSD__) || defined(__NetBSD)
357
+ # define PLATFORM_ID "NetBSD"
358
+
359
+ #elif defined(__OpenBSD__) || defined(__OPENBSD)
360
+ # define PLATFORM_ID "OpenBSD"
361
+
362
+ #elif defined(__sun) || defined(sun)
363
+ # define PLATFORM_ID "SunOS"
364
+
365
+ #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
366
+ # define PLATFORM_ID "AIX"
367
+
368
+ #elif defined(__hpux) || defined(__hpux__)
369
+ # define PLATFORM_ID "HP-UX"
370
+
371
+ #elif defined(__HAIKU__)
372
+ # define PLATFORM_ID "Haiku"
373
+
374
+ #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
375
+ # define PLATFORM_ID "BeOS"
376
+
377
+ #elif defined(__QNX__) || defined(__QNXNTO__)
378
+ # define PLATFORM_ID "QNX"
379
+
380
+ #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
381
+ # define PLATFORM_ID "Tru64"
382
+
383
+ #elif defined(__riscos) || defined(__riscos__)
384
+ # define PLATFORM_ID "RISCos"
385
+
386
+ #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
387
+ # define PLATFORM_ID "SINIX"
388
+
389
+ #elif defined(__UNIX_SV__)
390
+ # define PLATFORM_ID "UNIX_SV"
391
+
392
+ #elif defined(__bsdos__)
393
+ # define PLATFORM_ID "BSDOS"
394
+
395
+ #elif defined(_MPRAS) || defined(MPRAS)
396
+ # define PLATFORM_ID "MP-RAS"
397
+
398
+ #elif defined(__osf) || defined(__osf__)
399
+ # define PLATFORM_ID "OSF1"
400
+
401
+ #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
402
+ # define PLATFORM_ID "SCO_SV"
403
+
404
+ #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
405
+ # define PLATFORM_ID "ULTRIX"
406
+
407
+ #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
408
+ # define PLATFORM_ID "Xenix"
409
+
410
+ #elif defined(__WATCOMC__)
411
+ # if defined(__LINUX__)
412
+ # define PLATFORM_ID "Linux"
413
+
414
+ # elif defined(__DOS__)
415
+ # define PLATFORM_ID "DOS"
416
+
417
+ # elif defined(__OS2__)
418
+ # define PLATFORM_ID "OS2"
419
+
420
+ # elif defined(__WINDOWS__)
421
+ # define PLATFORM_ID "Windows3x"
422
+
423
+ # else /* unknown platform */
424
+ # define PLATFORM_ID
425
+ # endif
426
+
427
+ #elif defined(__INTEGRITY)
428
+ # if defined(INT_178B)
429
+ # define PLATFORM_ID "Integrity178"
430
+
431
+ # else /* regular Integrity */
432
+ # define PLATFORM_ID "Integrity"
433
+ # endif
434
+
435
+ #else /* unknown platform */
436
+ # define PLATFORM_ID
437
+
438
+ #endif
439
+
440
+ /* For windows compilers MSVC and Intel we can determine
441
+ the architecture of the compiler being used. This is because
442
+ the compilers do not have flags that can change the architecture,
443
+ but rather depend on which compiler is being used
444
+ */
445
+ #if defined(_WIN32) && defined(_MSC_VER)
446
+ # if defined(_M_IA64)
447
+ # define ARCHITECTURE_ID "IA64"
448
+
449
+ # elif defined(_M_X64) || defined(_M_AMD64)
450
+ # define ARCHITECTURE_ID "x64"
451
+
452
+ # elif defined(_M_IX86)
453
+ # define ARCHITECTURE_ID "X86"
454
+
455
+ # elif defined(_M_ARM64)
456
+ # define ARCHITECTURE_ID "ARM64"
457
+
458
+ # elif defined(_M_ARM)
459
+ # if _M_ARM == 4
460
+ # define ARCHITECTURE_ID "ARMV4I"
461
+ # elif _M_ARM == 5
462
+ # define ARCHITECTURE_ID "ARMV5I"
463
+ # else
464
+ # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
465
+ # endif
466
+
467
+ # elif defined(_M_MIPS)
468
+ # define ARCHITECTURE_ID "MIPS"
469
+
470
+ # elif defined(_M_SH)
471
+ # define ARCHITECTURE_ID "SHx"
472
+
473
+ # else /* unknown architecture */
474
+ # define ARCHITECTURE_ID ""
475
+ # endif
476
+
477
+ #elif defined(__WATCOMC__)
478
+ # if defined(_M_I86)
479
+ # define ARCHITECTURE_ID "I86"
480
+
481
+ # elif defined(_M_IX86)
482
+ # define ARCHITECTURE_ID "X86"
483
+
484
+ # else /* unknown architecture */
485
+ # define ARCHITECTURE_ID ""
486
+ # endif
487
+
488
+ #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
489
+ # if defined(__ICCARM__)
490
+ # define ARCHITECTURE_ID "ARM"
491
+
492
+ # elif defined(__ICCRX__)
493
+ # define ARCHITECTURE_ID "RX"
494
+
495
+ # elif defined(__ICCRH850__)
496
+ # define ARCHITECTURE_ID "RH850"
497
+
498
+ # elif defined(__ICCRL78__)
499
+ # define ARCHITECTURE_ID "RL78"
500
+
501
+ # elif defined(__ICCRISCV__)
502
+ # define ARCHITECTURE_ID "RISCV"
503
+
504
+ # elif defined(__ICCAVR__)
505
+ # define ARCHITECTURE_ID "AVR"
506
+
507
+ # elif defined(__ICC430__)
508
+ # define ARCHITECTURE_ID "MSP430"
509
+
510
+ # else /* unknown architecture */
511
+ # define ARCHITECTURE_ID ""
512
+ # endif
513
+
514
+ #elif defined(__ghs__)
515
+ # if defined(__PPC64__)
516
+ # define ARCHITECTURE_ID "PPC64"
517
+
518
+ # elif defined(__ppc__)
519
+ # define ARCHITECTURE_ID "PPC"
520
+
521
+ # elif defined(__ARM__)
522
+ # define ARCHITECTURE_ID "ARM"
523
+
524
+ # elif defined(__x86_64__)
525
+ # define ARCHITECTURE_ID "x64"
526
+
527
+ # elif defined(__i386__)
528
+ # define ARCHITECTURE_ID "X86"
529
+
530
+ # else /* unknown architecture */
531
+ # define ARCHITECTURE_ID ""
532
+ # endif
533
+ #else
534
+ # define ARCHITECTURE_ID
535
+ #endif
536
+
537
+ /* Convert integer to decimal digit literals. */
538
+ #define DEC(n) \
539
+ ('0' + (((n) / 10000000)%10)), \
540
+ ('0' + (((n) / 1000000)%10)), \
541
+ ('0' + (((n) / 100000)%10)), \
542
+ ('0' + (((n) / 10000)%10)), \
543
+ ('0' + (((n) / 1000)%10)), \
544
+ ('0' + (((n) / 100)%10)), \
545
+ ('0' + (((n) / 10)%10)), \
546
+ ('0' + ((n) % 10))
547
+
548
+ /* Convert integer to hex digit literals. */
549
+ #define HEX(n) \
550
+ ('0' + ((n)>>28 & 0xF)), \
551
+ ('0' + ((n)>>24 & 0xF)), \
552
+ ('0' + ((n)>>20 & 0xF)), \
553
+ ('0' + ((n)>>16 & 0xF)), \
554
+ ('0' + ((n)>>12 & 0xF)), \
555
+ ('0' + ((n)>>8 & 0xF)), \
556
+ ('0' + ((n)>>4 & 0xF)), \
557
+ ('0' + ((n) & 0xF))
558
+
559
+ /* Construct a string literal encoding the version number components. */
560
+ #ifdef COMPILER_VERSION_MAJOR
561
+ char const info_version[] = {
562
+ 'I', 'N', 'F', 'O', ':',
563
+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
564
+ COMPILER_VERSION_MAJOR,
565
+ # ifdef COMPILER_VERSION_MINOR
566
+ '.', COMPILER_VERSION_MINOR,
567
+ # ifdef COMPILER_VERSION_PATCH
568
+ '.', COMPILER_VERSION_PATCH,
569
+ # ifdef COMPILER_VERSION_TWEAK
570
+ '.', COMPILER_VERSION_TWEAK,
571
+ # endif
572
+ # endif
573
+ # endif
574
+ ']','\0'};
575
+ #endif
576
+
577
+ /* Construct a string literal encoding the internal version number. */
578
+ #ifdef COMPILER_VERSION_INTERNAL
579
+ char const info_version_internal[] = {
580
+ 'I', 'N', 'F', 'O', ':',
581
+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
582
+ 'i','n','t','e','r','n','a','l','[',
583
+ COMPILER_VERSION_INTERNAL,']','\0'};
584
+ #endif
585
+
586
+ /* Construct a string literal encoding the version number components. */
587
+ #ifdef SIMULATE_VERSION_MAJOR
588
+ char const info_simulate_version[] = {
589
+ 'I', 'N', 'F', 'O', ':',
590
+ 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
591
+ SIMULATE_VERSION_MAJOR,
592
+ # ifdef SIMULATE_VERSION_MINOR
593
+ '.', SIMULATE_VERSION_MINOR,
594
+ # ifdef SIMULATE_VERSION_PATCH
595
+ '.', SIMULATE_VERSION_PATCH,
596
+ # ifdef SIMULATE_VERSION_TWEAK
597
+ '.', SIMULATE_VERSION_TWEAK,
598
+ # endif
599
+ # endif
600
+ # endif
601
+ ']','\0'};
602
+ #endif
603
+
604
+ /* Construct the string literal in pieces to prevent the source from
605
+ getting matched. Store it in a pointer rather than an array
606
+ because some compilers will just produce instructions to fill the
607
+ array rather than assigning a pointer to a static array. */
608
+ char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
609
+ char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
610
+
611
+
612
+
613
+
614
+ #if !defined(__STDC__)
615
+ # if (defined(_MSC_VER) && !defined(__clang__)) \
616
+ || (defined(__ibmxl__) || defined(__IBMC__))
617
+ # define C_DIALECT "90"
618
+ # else
619
+ # define C_DIALECT
620
+ # endif
621
+ #elif __STDC_VERSION__ >= 201000L
622
+ # define C_DIALECT "11"
623
+ #elif __STDC_VERSION__ >= 199901L
624
+ # define C_DIALECT "99"
625
+ #else
626
+ # define C_DIALECT "90"
627
+ #endif
628
+ const char* info_language_dialect_default =
629
+ "INFO" ":" "dialect_default[" C_DIALECT "]";
630
+
631
+ /*--------------------------------------------------------------------------*/
632
+
633
+ #ifdef ID_VOID_MAIN
634
+ void main() {}
635
+ #else
636
+ # if defined(__CLASSIC_C__)
637
+ int main(argc, argv) int argc; char *argv[];
638
+ # else
639
+ int main(int argc, char* argv[])
640
+ # endif
641
+ {
642
+ int require = 0;
643
+ require += info_compiler[argc];
644
+ require += info_platform[argc];
645
+ require += info_arch[argc];
646
+ #ifdef COMPILER_VERSION_MAJOR
647
+ require += info_version[argc];
648
+ #endif
649
+ #ifdef COMPILER_VERSION_INTERNAL
650
+ require += info_version_internal[argc];
651
+ #endif
652
+ #ifdef SIMULATE_ID
653
+ require += info_simulate[argc];
654
+ #endif
655
+ #ifdef SIMULATE_VERSION_MAJOR
656
+ require += info_simulate_version[argc];
657
+ #endif
658
+ #if defined(__CRAYXE) || defined(__CRAYXC)
659
+ require += info_cray[argc];
660
+ #endif
661
+ require += info_language_dialect_default[argc];
662
+ (void)argv;
663
+ return require;
664
+ }
665
+ #endif