@coana-tech/cli 14.12.76 → 14.12.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +1 -1
- package/package.json +1 -1
- package/reachability-analyzers-cli.mjs +1 -2
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/cli.mjs +24669 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/LICENSE.md +9 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/README.md +95 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/common.gypi +21 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/except.gypi +25 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/index.js +14 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi-inl.h +6941 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi.h +3295 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/node_addon_api.gyp +42 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/node_api.gyp +9 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/nothing.c +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/package-support.json +21 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/package.json +480 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/README.md +73 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/check-napi.js +99 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/clang-format.js +71 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/conversion.js +301 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/LICENSE +21 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/README.md +58 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/bin.js +84 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/build-test.js +19 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/index.js +6 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/optional.js +7 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/package.json +43 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/LICENSE +21 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/README.md +128 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/binding.gyp +80 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/index.js +919 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build +16 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build-optional +16 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build-test +16 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/package.json +76 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/darwin-arm64/tree-sitter.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/linux-arm64/tree-sitter.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/win32-arm64/tree-sitter.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/win32-x64/tree-sitter.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/addon_data.h +47 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/binding.cc +35 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/conversions.cc +140 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/conversions.h +22 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/language.cc +106 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/language.h +17 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/logger.cc +70 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/logger.h +19 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/node.cc +1088 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/node.h +30 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/parser.cc +306 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/parser.h +35 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/query.cc +397 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/query.h +40 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree.cc +316 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree.h +45 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree_cursor.h +52 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/tree-sitter.d.ts +1042 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1318 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +291 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +501 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +223 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +297 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +435 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +49 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +12 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +920 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2165 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +266 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +62 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +206 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4187 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +899 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +130 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1066 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +399 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +170 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +712 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +11 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +83 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +24 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +109 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1302 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1859 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/LICENSE +22 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/README.md +21 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/binding.gyp +30 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/binding.cc +20 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/binding_test.js +9 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/index.d.ts +28 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/index.js +11 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/grammar.js +1281 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build +16 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build-optional +16 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build-test +16 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/package.json +77 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/darwin-arm64/tree-sitter-ruby.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/darwin-x64/tree-sitter-ruby.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/linux-arm64/tree-sitter-ruby.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/linux-x64/tree-sitter-ruby.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/win32-arm64/tree-sitter-ruby.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/win32-x64/tree-sitter-ruby.node +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/highlights.scm +154 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/locals.scm +27 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/tags.scm +64 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/grammar.json +8364 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/node-types.json +4108 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/parser.c +471247 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/scanner.c +1107 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/alloc.h +54 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/array.h +290 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/parser.h +266 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/tree-sitter-ruby.wasm +0 -0
- package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/tree-sitter.json +46 -0
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
#ifndef TREE_SITTER_PARSER_H_
|
|
2
|
+
#define TREE_SITTER_PARSER_H_
|
|
3
|
+
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#include <stdbool.h>
|
|
9
|
+
#include <stdint.h>
|
|
10
|
+
#include <stdlib.h>
|
|
11
|
+
|
|
12
|
+
#define ts_builtin_sym_error ((TSSymbol)-1)
|
|
13
|
+
#define ts_builtin_sym_end 0
|
|
14
|
+
#define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024
|
|
15
|
+
|
|
16
|
+
#ifndef TREE_SITTER_API_H_
|
|
17
|
+
typedef uint16_t TSStateId;
|
|
18
|
+
typedef uint16_t TSSymbol;
|
|
19
|
+
typedef uint16_t TSFieldId;
|
|
20
|
+
typedef struct TSLanguage TSLanguage;
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
typedef struct {
|
|
24
|
+
TSFieldId field_id;
|
|
25
|
+
uint8_t child_index;
|
|
26
|
+
bool inherited;
|
|
27
|
+
} TSFieldMapEntry;
|
|
28
|
+
|
|
29
|
+
typedef struct {
|
|
30
|
+
uint16_t index;
|
|
31
|
+
uint16_t length;
|
|
32
|
+
} TSFieldMapSlice;
|
|
33
|
+
|
|
34
|
+
typedef struct {
|
|
35
|
+
bool visible;
|
|
36
|
+
bool named;
|
|
37
|
+
bool supertype;
|
|
38
|
+
} TSSymbolMetadata;
|
|
39
|
+
|
|
40
|
+
typedef struct TSLexer TSLexer;
|
|
41
|
+
|
|
42
|
+
struct TSLexer {
|
|
43
|
+
int32_t lookahead;
|
|
44
|
+
TSSymbol result_symbol;
|
|
45
|
+
void (*advance)(TSLexer *, bool);
|
|
46
|
+
void (*mark_end)(TSLexer *);
|
|
47
|
+
uint32_t (*get_column)(TSLexer *);
|
|
48
|
+
bool (*is_at_included_range_start)(const TSLexer *);
|
|
49
|
+
bool (*eof)(const TSLexer *);
|
|
50
|
+
void (*log)(const TSLexer *, const char *, ...);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
typedef enum {
|
|
54
|
+
TSParseActionTypeShift,
|
|
55
|
+
TSParseActionTypeReduce,
|
|
56
|
+
TSParseActionTypeAccept,
|
|
57
|
+
TSParseActionTypeRecover,
|
|
58
|
+
} TSParseActionType;
|
|
59
|
+
|
|
60
|
+
typedef union {
|
|
61
|
+
struct {
|
|
62
|
+
uint8_t type;
|
|
63
|
+
TSStateId state;
|
|
64
|
+
bool extra;
|
|
65
|
+
bool repetition;
|
|
66
|
+
} shift;
|
|
67
|
+
struct {
|
|
68
|
+
uint8_t type;
|
|
69
|
+
uint8_t child_count;
|
|
70
|
+
TSSymbol symbol;
|
|
71
|
+
int16_t dynamic_precedence;
|
|
72
|
+
uint16_t production_id;
|
|
73
|
+
} reduce;
|
|
74
|
+
uint8_t type;
|
|
75
|
+
} TSParseAction;
|
|
76
|
+
|
|
77
|
+
typedef struct {
|
|
78
|
+
uint16_t lex_state;
|
|
79
|
+
uint16_t external_lex_state;
|
|
80
|
+
} TSLexMode;
|
|
81
|
+
|
|
82
|
+
typedef union {
|
|
83
|
+
TSParseAction action;
|
|
84
|
+
struct {
|
|
85
|
+
uint8_t count;
|
|
86
|
+
bool reusable;
|
|
87
|
+
} entry;
|
|
88
|
+
} TSParseActionEntry;
|
|
89
|
+
|
|
90
|
+
typedef struct {
|
|
91
|
+
int32_t start;
|
|
92
|
+
int32_t end;
|
|
93
|
+
} TSCharacterRange;
|
|
94
|
+
|
|
95
|
+
struct TSLanguage {
|
|
96
|
+
uint32_t version;
|
|
97
|
+
uint32_t symbol_count;
|
|
98
|
+
uint32_t alias_count;
|
|
99
|
+
uint32_t token_count;
|
|
100
|
+
uint32_t external_token_count;
|
|
101
|
+
uint32_t state_count;
|
|
102
|
+
uint32_t large_state_count;
|
|
103
|
+
uint32_t production_id_count;
|
|
104
|
+
uint32_t field_count;
|
|
105
|
+
uint16_t max_alias_sequence_length;
|
|
106
|
+
const uint16_t *parse_table;
|
|
107
|
+
const uint16_t *small_parse_table;
|
|
108
|
+
const uint32_t *small_parse_table_map;
|
|
109
|
+
const TSParseActionEntry *parse_actions;
|
|
110
|
+
const char * const *symbol_names;
|
|
111
|
+
const char * const *field_names;
|
|
112
|
+
const TSFieldMapSlice *field_map_slices;
|
|
113
|
+
const TSFieldMapEntry *field_map_entries;
|
|
114
|
+
const TSSymbolMetadata *symbol_metadata;
|
|
115
|
+
const TSSymbol *public_symbol_map;
|
|
116
|
+
const uint16_t *alias_map;
|
|
117
|
+
const TSSymbol *alias_sequences;
|
|
118
|
+
const TSLexMode *lex_modes;
|
|
119
|
+
bool (*lex_fn)(TSLexer *, TSStateId);
|
|
120
|
+
bool (*keyword_lex_fn)(TSLexer *, TSStateId);
|
|
121
|
+
TSSymbol keyword_capture_token;
|
|
122
|
+
struct {
|
|
123
|
+
const bool *states;
|
|
124
|
+
const TSSymbol *symbol_map;
|
|
125
|
+
void *(*create)(void);
|
|
126
|
+
void (*destroy)(void *);
|
|
127
|
+
bool (*scan)(void *, TSLexer *, const bool *symbol_whitelist);
|
|
128
|
+
unsigned (*serialize)(void *, char *);
|
|
129
|
+
void (*deserialize)(void *, const char *, unsigned);
|
|
130
|
+
} external_scanner;
|
|
131
|
+
const TSStateId *primary_state_ids;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
static inline bool set_contains(TSCharacterRange *ranges, uint32_t len, int32_t lookahead) {
|
|
135
|
+
uint32_t index = 0;
|
|
136
|
+
uint32_t size = len - index;
|
|
137
|
+
while (size > 1) {
|
|
138
|
+
uint32_t half_size = size / 2;
|
|
139
|
+
uint32_t mid_index = index + half_size;
|
|
140
|
+
TSCharacterRange *range = &ranges[mid_index];
|
|
141
|
+
if (lookahead >= range->start && lookahead <= range->end) {
|
|
142
|
+
return true;
|
|
143
|
+
} else if (lookahead > range->end) {
|
|
144
|
+
index = mid_index;
|
|
145
|
+
}
|
|
146
|
+
size -= half_size;
|
|
147
|
+
}
|
|
148
|
+
TSCharacterRange *range = &ranges[index];
|
|
149
|
+
return (lookahead >= range->start && lookahead <= range->end);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/*
|
|
153
|
+
* Lexer Macros
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
#ifdef _MSC_VER
|
|
157
|
+
#define UNUSED __pragma(warning(suppress : 4101))
|
|
158
|
+
#else
|
|
159
|
+
#define UNUSED __attribute__((unused))
|
|
160
|
+
#endif
|
|
161
|
+
|
|
162
|
+
#define START_LEXER() \
|
|
163
|
+
bool result = false; \
|
|
164
|
+
bool skip = false; \
|
|
165
|
+
UNUSED \
|
|
166
|
+
bool eof = false; \
|
|
167
|
+
int32_t lookahead; \
|
|
168
|
+
goto start; \
|
|
169
|
+
next_state: \
|
|
170
|
+
lexer->advance(lexer, skip); \
|
|
171
|
+
start: \
|
|
172
|
+
skip = false; \
|
|
173
|
+
lookahead = lexer->lookahead;
|
|
174
|
+
|
|
175
|
+
#define ADVANCE(state_value) \
|
|
176
|
+
{ \
|
|
177
|
+
state = state_value; \
|
|
178
|
+
goto next_state; \
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
#define ADVANCE_MAP(...) \
|
|
182
|
+
{ \
|
|
183
|
+
static const uint16_t map[] = { __VA_ARGS__ }; \
|
|
184
|
+
for (uint32_t i = 0; i < sizeof(map) / sizeof(map[0]); i += 2) { \
|
|
185
|
+
if (map[i] == lookahead) { \
|
|
186
|
+
state = map[i + 1]; \
|
|
187
|
+
goto next_state; \
|
|
188
|
+
} \
|
|
189
|
+
} \
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
#define SKIP(state_value) \
|
|
193
|
+
{ \
|
|
194
|
+
skip = true; \
|
|
195
|
+
state = state_value; \
|
|
196
|
+
goto next_state; \
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
#define ACCEPT_TOKEN(symbol_value) \
|
|
200
|
+
result = true; \
|
|
201
|
+
lexer->result_symbol = symbol_value; \
|
|
202
|
+
lexer->mark_end(lexer);
|
|
203
|
+
|
|
204
|
+
#define END_STATE() return result;
|
|
205
|
+
|
|
206
|
+
/*
|
|
207
|
+
* Parse Table Macros
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
#define SMALL_STATE(id) ((id) - LARGE_STATE_COUNT)
|
|
211
|
+
|
|
212
|
+
#define STATE(id) id
|
|
213
|
+
|
|
214
|
+
#define ACTIONS(id) id
|
|
215
|
+
|
|
216
|
+
#define SHIFT(state_value) \
|
|
217
|
+
{{ \
|
|
218
|
+
.shift = { \
|
|
219
|
+
.type = TSParseActionTypeShift, \
|
|
220
|
+
.state = (state_value) \
|
|
221
|
+
} \
|
|
222
|
+
}}
|
|
223
|
+
|
|
224
|
+
#define SHIFT_REPEAT(state_value) \
|
|
225
|
+
{{ \
|
|
226
|
+
.shift = { \
|
|
227
|
+
.type = TSParseActionTypeShift, \
|
|
228
|
+
.state = (state_value), \
|
|
229
|
+
.repetition = true \
|
|
230
|
+
} \
|
|
231
|
+
}}
|
|
232
|
+
|
|
233
|
+
#define SHIFT_EXTRA() \
|
|
234
|
+
{{ \
|
|
235
|
+
.shift = { \
|
|
236
|
+
.type = TSParseActionTypeShift, \
|
|
237
|
+
.extra = true \
|
|
238
|
+
} \
|
|
239
|
+
}}
|
|
240
|
+
|
|
241
|
+
#define REDUCE(symbol_name, children, precedence, prod_id) \
|
|
242
|
+
{{ \
|
|
243
|
+
.reduce = { \
|
|
244
|
+
.type = TSParseActionTypeReduce, \
|
|
245
|
+
.symbol = symbol_name, \
|
|
246
|
+
.child_count = children, \
|
|
247
|
+
.dynamic_precedence = precedence, \
|
|
248
|
+
.production_id = prod_id \
|
|
249
|
+
}, \
|
|
250
|
+
}}
|
|
251
|
+
|
|
252
|
+
#define RECOVER() \
|
|
253
|
+
{{ \
|
|
254
|
+
.type = TSParseActionTypeRecover \
|
|
255
|
+
}}
|
|
256
|
+
|
|
257
|
+
#define ACCEPT_INPUT() \
|
|
258
|
+
{{ \
|
|
259
|
+
.type = TSParseActionTypeAccept \
|
|
260
|
+
}}
|
|
261
|
+
|
|
262
|
+
#ifdef __cplusplus
|
|
263
|
+
}
|
|
264
|
+
#endif
|
|
265
|
+
|
|
266
|
+
#endif // TREE_SITTER_PARSER_H_
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
#ifndef TREE_SITTER_POINT_H_
|
|
2
|
+
#define TREE_SITTER_POINT_H_
|
|
3
|
+
|
|
4
|
+
#include "tree_sitter/api.h"
|
|
5
|
+
|
|
6
|
+
#define POINT_ZERO ((TSPoint) {0, 0})
|
|
7
|
+
#define POINT_MAX ((TSPoint) {UINT32_MAX, UINT32_MAX})
|
|
8
|
+
|
|
9
|
+
static inline TSPoint point__new(unsigned row, unsigned column) {
|
|
10
|
+
TSPoint result = {row, column};
|
|
11
|
+
return result;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static inline TSPoint point_add(TSPoint a, TSPoint b) {
|
|
15
|
+
if (b.row > 0)
|
|
16
|
+
return point__new(a.row + b.row, b.column);
|
|
17
|
+
else
|
|
18
|
+
return point__new(a.row, a.column + b.column);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static inline TSPoint point_sub(TSPoint a, TSPoint b) {
|
|
22
|
+
if (a.row > b.row)
|
|
23
|
+
return point__new(a.row - b.row, a.column);
|
|
24
|
+
else
|
|
25
|
+
return point__new(0, a.column - b.column);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static inline bool point_lte(TSPoint a, TSPoint b) {
|
|
29
|
+
return (a.row < b.row) || (a.row == b.row && a.column <= b.column);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static inline bool point_lt(TSPoint a, TSPoint b) {
|
|
33
|
+
return (a.row < b.row) || (a.row == b.row && a.column < b.column);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static inline bool point_gt(TSPoint a, TSPoint b) {
|
|
37
|
+
return (a.row > b.row) || (a.row == b.row && a.column > b.column);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static inline bool point_gte(TSPoint a, TSPoint b) {
|
|
41
|
+
return (a.row > b.row) || (a.row == b.row && a.column >= b.column);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static inline bool point_eq(TSPoint a, TSPoint b) {
|
|
45
|
+
return a.row == b.row && a.column == b.column;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static inline TSPoint point_min(TSPoint a, TSPoint b) {
|
|
49
|
+
if (a.row < b.row || (a.row == b.row && a.column < b.column))
|
|
50
|
+
return a;
|
|
51
|
+
else
|
|
52
|
+
return b;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static inline TSPoint point_max(TSPoint a, TSPoint b) {
|
|
56
|
+
if (a.row > b.row || (a.row == b.row && a.column > b.column))
|
|
57
|
+
return a;
|
|
58
|
+
else
|
|
59
|
+
return b;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#endif
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// "License": Public Domain
|
|
2
|
+
// I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like.
|
|
3
|
+
// In case there are jurisdictions that don't support putting things in the public domain you can also consider it to
|
|
4
|
+
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it
|
|
5
|
+
// an example on how to get the endian conversion functions on different platforms.
|
|
6
|
+
|
|
7
|
+
#ifndef PORTABLE_ENDIAN_H__
|
|
8
|
+
#define PORTABLE_ENDIAN_H__
|
|
9
|
+
|
|
10
|
+
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
|
|
11
|
+
|
|
12
|
+
# define __WINDOWS__
|
|
13
|
+
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(__EMSCRIPTEN__)
|
|
17
|
+
|
|
18
|
+
# include <endian.h>
|
|
19
|
+
|
|
20
|
+
#elif defined(__APPLE__)
|
|
21
|
+
|
|
22
|
+
# include <libkern/OSByteOrder.h>
|
|
23
|
+
|
|
24
|
+
# define htobe16(x) OSSwapHostToBigInt16(x)
|
|
25
|
+
# define htole16(x) OSSwapHostToLittleInt16(x)
|
|
26
|
+
# define be16toh(x) OSSwapBigToHostInt16(x)
|
|
27
|
+
# define le16toh(x) OSSwapLittleToHostInt16(x)
|
|
28
|
+
|
|
29
|
+
# define htobe32(x) OSSwapHostToBigInt32(x)
|
|
30
|
+
# define htole32(x) OSSwapHostToLittleInt32(x)
|
|
31
|
+
# define be32toh(x) OSSwapBigToHostInt32(x)
|
|
32
|
+
# define le32toh(x) OSSwapLittleToHostInt32(x)
|
|
33
|
+
|
|
34
|
+
# define htobe64(x) OSSwapHostToBigInt64(x)
|
|
35
|
+
# define htole64(x) OSSwapHostToLittleInt64(x)
|
|
36
|
+
# define be64toh(x) OSSwapBigToHostInt64(x)
|
|
37
|
+
# define le64toh(x) OSSwapLittleToHostInt64(x)
|
|
38
|
+
|
|
39
|
+
# define __BYTE_ORDER BYTE_ORDER
|
|
40
|
+
# define __BIG_ENDIAN BIG_ENDIAN
|
|
41
|
+
# define __LITTLE_ENDIAN LITTLE_ENDIAN
|
|
42
|
+
# define __PDP_ENDIAN PDP_ENDIAN
|
|
43
|
+
|
|
44
|
+
#elif defined(__OpenBSD__)
|
|
45
|
+
|
|
46
|
+
# include <endian.h>
|
|
47
|
+
|
|
48
|
+
# define __BYTE_ORDER BYTE_ORDER
|
|
49
|
+
# define __BIG_ENDIAN BIG_ENDIAN
|
|
50
|
+
# define __LITTLE_ENDIAN LITTLE_ENDIAN
|
|
51
|
+
# define __PDP_ENDIAN PDP_ENDIAN
|
|
52
|
+
|
|
53
|
+
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
|
54
|
+
|
|
55
|
+
# include <sys/endian.h>
|
|
56
|
+
|
|
57
|
+
# define be16toh(x) betoh16(x)
|
|
58
|
+
# define le16toh(x) letoh16(x)
|
|
59
|
+
|
|
60
|
+
# define be32toh(x) betoh32(x)
|
|
61
|
+
# define le32toh(x) letoh32(x)
|
|
62
|
+
|
|
63
|
+
# define be64toh(x) betoh64(x)
|
|
64
|
+
# define le64toh(x) letoh64(x)
|
|
65
|
+
|
|
66
|
+
#elif defined(__WINDOWS__)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# if defined(_MSC_VER) && !defined(__clang__)
|
|
70
|
+
# include <stdlib.h>
|
|
71
|
+
# define B_SWAP_16(x) _byteswap_ushort(x)
|
|
72
|
+
# define B_SWAP_32(x) _byteswap_ulong(x)
|
|
73
|
+
# define B_SWAP_64(x) _byteswap_uint64(x)
|
|
74
|
+
# else
|
|
75
|
+
# define B_SWAP_16(x) __builtin_bswap16(x)
|
|
76
|
+
# define B_SWAP_32(x) __builtin_bswap32(x)
|
|
77
|
+
# define B_SWAP_64(x) __builtin_bswap64(x)
|
|
78
|
+
# endif
|
|
79
|
+
|
|
80
|
+
# if defined(__MINGW32__) || defined(HAVE_SYS_PARAM_H)
|
|
81
|
+
# include <sys/param.h>
|
|
82
|
+
# endif
|
|
83
|
+
|
|
84
|
+
# ifndef BIG_ENDIAN
|
|
85
|
+
# ifdef __BIG_ENDIAN
|
|
86
|
+
# define BIG_ENDIAN __BIG_ENDIAN
|
|
87
|
+
# elif defined(__ORDER_BIG_ENDIAN__)
|
|
88
|
+
# define BIG_ENDIAN __ORDER_BIG_ENDIAN__
|
|
89
|
+
# else
|
|
90
|
+
# define BIG_ENDIAN 4321
|
|
91
|
+
# endif
|
|
92
|
+
# endif
|
|
93
|
+
|
|
94
|
+
# ifndef LITTLE_ENDIAN
|
|
95
|
+
# ifdef __LITTLE_ENDIAN
|
|
96
|
+
# define LITTLE_ENDIAN __LITTLE_ENDIAN
|
|
97
|
+
# elif defined(__ORDER_LITTLE_ENDIAN__)
|
|
98
|
+
# define LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
|
|
99
|
+
# else
|
|
100
|
+
# define LITTLE_ENDIAN 1234
|
|
101
|
+
# endif
|
|
102
|
+
# endif
|
|
103
|
+
|
|
104
|
+
# ifndef BYTE_ORDER
|
|
105
|
+
# ifdef __BYTE_ORDER
|
|
106
|
+
# define BYTE_ORDER __BYTE_ORDER
|
|
107
|
+
# elif defined(__BYTE_ORDER__)
|
|
108
|
+
# define BYTE_ORDER __BYTE_ORDER__
|
|
109
|
+
# else
|
|
110
|
+
/* assume LE on Windows if nothing was defined */
|
|
111
|
+
# define BYTE_ORDER LITTLE_ENDIAN
|
|
112
|
+
# endif
|
|
113
|
+
# endif
|
|
114
|
+
|
|
115
|
+
# if BYTE_ORDER == LITTLE_ENDIAN
|
|
116
|
+
|
|
117
|
+
# define htobe16(x) B_SWAP_16(x)
|
|
118
|
+
# define htole16(x) (x)
|
|
119
|
+
# define be16toh(x) B_SWAP_16(x)
|
|
120
|
+
# define le16toh(x) (x)
|
|
121
|
+
|
|
122
|
+
# define htobe32(x) B_SWAP_32(x)
|
|
123
|
+
# define htole32(x) (x)
|
|
124
|
+
# define be32toh(x) B_SWAP_32(x)
|
|
125
|
+
# define le32toh(x) (x)
|
|
126
|
+
|
|
127
|
+
# define htobe64(x) B_SWAP_64(x)
|
|
128
|
+
# define htole64(x) (x)
|
|
129
|
+
# define be64toh(x) B_SWAP_64(x)
|
|
130
|
+
# define le64toh(x) (x)
|
|
131
|
+
|
|
132
|
+
# elif BYTE_ORDER == BIG_ENDIAN
|
|
133
|
+
|
|
134
|
+
# define htobe16(x) (x)
|
|
135
|
+
# define htole16(x) B_SWAP_16(x)
|
|
136
|
+
# define be16toh(x) (x)
|
|
137
|
+
# define le16toh(x) B_SWAP_16(x)
|
|
138
|
+
|
|
139
|
+
# define htobe32(x) (x)
|
|
140
|
+
# define htole32(x) B_SWAP_32(x)
|
|
141
|
+
# define be32toh(x) (x)
|
|
142
|
+
# define le32toh(x) B_SWAP_32(x)
|
|
143
|
+
|
|
144
|
+
# define htobe64(x) (x)
|
|
145
|
+
# define htole64(x) B_SWAP_64(x)
|
|
146
|
+
# define be64toh(x) (x)
|
|
147
|
+
# define le64toh(x) B_SWAP_64(x)
|
|
148
|
+
|
|
149
|
+
# else
|
|
150
|
+
|
|
151
|
+
# error byte order not supported
|
|
152
|
+
|
|
153
|
+
# endif
|
|
154
|
+
|
|
155
|
+
#elif defined(__QNXNTO__)
|
|
156
|
+
|
|
157
|
+
# include <gulliver.h>
|
|
158
|
+
|
|
159
|
+
# define __LITTLE_ENDIAN 1234
|
|
160
|
+
# define __BIG_ENDIAN 4321
|
|
161
|
+
# define __PDP_ENDIAN 3412
|
|
162
|
+
|
|
163
|
+
# if defined(__BIGENDIAN__)
|
|
164
|
+
|
|
165
|
+
# define __BYTE_ORDER __BIG_ENDIAN
|
|
166
|
+
|
|
167
|
+
# define htobe16(x) (x)
|
|
168
|
+
# define htobe32(x) (x)
|
|
169
|
+
# define htobe64(x) (x)
|
|
170
|
+
|
|
171
|
+
# define htole16(x) ENDIAN_SWAP16(x)
|
|
172
|
+
# define htole32(x) ENDIAN_SWAP32(x)
|
|
173
|
+
# define htole64(x) ENDIAN_SWAP64(x)
|
|
174
|
+
|
|
175
|
+
# elif defined(__LITTLEENDIAN__)
|
|
176
|
+
|
|
177
|
+
# define __BYTE_ORDER __LITTLE_ENDIAN
|
|
178
|
+
|
|
179
|
+
# define htole16(x) (x)
|
|
180
|
+
# define htole32(x) (x)
|
|
181
|
+
# define htole64(x) (x)
|
|
182
|
+
|
|
183
|
+
# define htobe16(x) ENDIAN_SWAP16(x)
|
|
184
|
+
# define htobe32(x) ENDIAN_SWAP32(x)
|
|
185
|
+
# define htobe64(x) ENDIAN_SWAP64(x)
|
|
186
|
+
|
|
187
|
+
# else
|
|
188
|
+
|
|
189
|
+
# error byte order not supported
|
|
190
|
+
|
|
191
|
+
# endif
|
|
192
|
+
|
|
193
|
+
# define be16toh(x) ENDIAN_BE16(x)
|
|
194
|
+
# define be32toh(x) ENDIAN_BE32(x)
|
|
195
|
+
# define be64toh(x) ENDIAN_BE64(x)
|
|
196
|
+
# define le16toh(x) ENDIAN_LE16(x)
|
|
197
|
+
# define le32toh(x) ENDIAN_LE32(x)
|
|
198
|
+
# define le64toh(x) ENDIAN_LE64(x)
|
|
199
|
+
|
|
200
|
+
#else
|
|
201
|
+
|
|
202
|
+
# error platform not supported
|
|
203
|
+
|
|
204
|
+
#endif
|
|
205
|
+
|
|
206
|
+
#endif
|